473,802 Members | 2,253 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cross Browser Compatability

2 New Member
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 1199
drhowarddrfine
7,435 Recognized Expert Expert
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 Recognized Expert Expert
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
andycain
2 New Member
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 Recognized Expert Expert
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
5940
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 of Opera, Firebird and Netscape and they do not work. Its seem any dynamic text from the mySQL database is not showing up. I know that the percentage of people using these browsers will probably be extremely low, but it is a concern. Also, I...
6
2455
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) { adBtype = "NS6+";
7
11654
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 | +---------------+ | body | | (scrollable) | +---------------+ | footer |
4
7708
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 is <embed>ded in a minimal .html file. The onclick's work fine in IE w/Adobe SVG viewer 3: click and a new
4
1396
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 would hate to make web pages that can not be viewed by customers using these mediums as most people who use computers in a more entertainment light use these generic browsers. WStoreyII
17
1797
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... According to a recent survey (http://www.weboptimiser.com/search_engine_marketing_news/3061148.html), Internet Explorer has just under 95% of the browser marketplace. Do you think it's worth the additional aggravation of making things work in
15
2332
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, FireFox, and Safari). We've made heavy usage of the new MENU control and other intrinsic 2.0 controls.... nothing fancy! just using ASP.NET's built-in controls and very nice, pervasive, and clean usage of CSS. Now I find after more testing that the...
1
2040
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 is even displayed in the field. Is there a working implementation anywhere? And how about denial of cross-browser pasting? On Windows a popup menu appears with the clipboard pasting options and I'd like to disable that and CTRL-V in an INPUT...
2
1457
by: riaveedon | last post by:
Is there any conveter or generator to do browser compatability for stylesheets easily
1
1065
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 help me...
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9559
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10301
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10280
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9107
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6835
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5492
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5620
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4268
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.