473,387 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Cross Browser Compatability

Hello guys.

Developing a site using XTHML 1.0 Strict Doctype with CSS and I'm getting problems with getting the site to display properly in Firefox, Opera, Netscape and IE.

Thing is it displays fine (or how I want it to) in IE but in Firefox, Opera and Netscape I get a problem with the margins around my DIVs.

In the last three browsers (Firefox,Opera and Netscape) the site displays exaclty the same which leads me to believe that IE is displaying the site incorrectly (Never heard that before....).

Despite that I want the site to dispaly like IE displays it in all browsers. The problem I'm having in Firefox, Opera and netscape is that the centre DIVs is rammed right up agains the top header DIV when it should be shifted down and inlign with the two columns either side of it.

I've run my site through the W3C Validator and it all checks with 0 errors so I don't think it's anything to do with browsers rendering in quirks mode. I have also run the style sheet through the CSS validator which also comes out with 0 errors. Thereofre all my code is XHTML Strict compliant, yet the site doens't display as intended.

page url: www.1130df.co.uk

style sheet: www.1130df.co.uk/style.css


Any ideas?
Mar 9 '08 #1
4 1183
drhowarddrfine
7,435 Expert 4TB
Thing is it displays fine (or how I want it to) in IE but in Firefox, Opera and Netscape
Your first hint.
which leads me to believe that IE is displaying the site incorrectly (Never heard that before....).
You are thinking correctly. All versions of IE are 10 years behind web standards and buggy. It cannot and should not be trusted to do anything correctly. Like I said above, your first proof of this is the fact that all other browsers display the same as each other while IE stands alone.

Always, always use a modern, standards-compliant browser to initially test your markup to make sure it is displaying correctly. Then look at it in IE to see if it manages to do it the same way. If not, the hacks, quirks and bugs for IE are known and found on hundreds of web sites on the 'net.
I've run my site through the W3C Validator and it all checks out so I don't think it's anything to do with browsers rendering in quirks mode.
Some doctypes are valid but IE will still choke on them. Such as the xml declaration which should be used for xhtml but IE can't display true xhtml anyway so it doesn't matter.
Any ideas?
I'll look at this now.
Mar 9 '08 #2
drhowarddrfine
7,435 Expert 4TB
IE is mishandling your header float, as IE so often does. It is expanding the floated container and pushing the center div down. This is a bug in IE which is why you don't see it in the modern browsers.

I don't see why it is necessary to float the header but if you just remove the 'float' from #header, that should solve the problem.

btw, Netscape is dead. AOL dropped development. Don't bother.
Mar 9 '08 #3
IE is mishandling your header float, as IE so often does. It is expanding the floated container and pushing the center div down. This is a bug in IE which is why you don't see it in the modern browsers.

I don't see why it is necessary to float the header but if you just remove the 'float' from #header, that should solve the problem.

btw, Netscape is dead. AOL dropped development. Don't bother.
Fantastic! Thanks. That's fixed it. Really appreciate the help. Any idea why the float stops the margin from displaying properly in the modern browsers?
Mar 10 '08 #4
drhowarddrfine
7,435 Expert 4TB
The modern browsers are performing correctly and as the standard states. It is IE that is performing incorrectly. You are seeing a bug in IE. Never trust IE.
Mar 10 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Miranda | last post by:
Hello, My employer is having a PHP application built (I'm in the process of studying PHP, and am an intermediate ASP programmer). Problem is, I've tested this application on the newest versions...
6
by: McKirahan | last post by:
Is this a very good browser check? <html> <head> <title>wB.htm</title> <script type="text/javascript"> var adBtype = "??"; function wB() { if (document.getElementById && !document.all) {...
7
by: Matt Kruse | last post by:
This is a typical layout, but I have specific requirements. I'm trying to figure out a) if it's possible to meet the requirements and b) if so, how. +---------------+ | header |...
4
by: J Fisk | last post by:
Hi, I've been banging my head on the wall over this for about two days now so any thoughts are much appreciated. I have a static .svg file with embedded onclick="open()"'s all over. The svg...
4
by: WStoreyII | last post by:
I know that the main two browsers are ie and netscape. However, how do i know if browsers like aol and other abstract browser put out by isps like sbc and earthlink are compatable with asp.net. I...
17
by: Mark Rae | last post by:
Hi, I'm interested in your opinion concerning how far you would consider it necessary to code for cross-browser compatibility these days, especially for public-facing Internet sites... ...
15
by: CMM | last post by:
So I'm half way through overseeing a large project in ASP.NET 2.0. My superiors have decided that it would be nice if we ensured the site worked on all the major platforms (as they see it: IE,...
1
by: Rancid Buttchutney | last post by:
I've tried searching the web but I've had little success finding a cross-browser(IE, Firefox and Opera anyway) implementation of a restricted text INPUT that works in realtime before a character...
2
by: riaveedon | last post by:
Is there any conveter or generator to do browser compatability for stylesheets easily
1
by: DlogeshK | last post by:
.. Can u help me..? i have an steganography code in c#.net... i need to access those codes in vb.net.. i know its possible using cross language compatability.. but i dont know how to use it.. pls...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.