![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi folks, I'm working on a site using css-p for all the layout and rollovers etc. I've hit a bit of a brick wall with a couple of elements though and thought someone here could help me out. Test page is available at http://www.aoov50.dsl.pipex.com/flowers/test.htm I've included all the css as inline rather than linked so the source code should be pretty easy to view. The navigation buttons (top right) look fine in the windows versions of Netscape (7.1) and Mozilla Firefox but a complete dogs dinner in IE6. Also, I've had to put a pixel width on one item, #header width: 298px; which leaves a 2 pixel gap on the right hand side in NS/MF but looks dandy in IE6. It _should_ be 300px to make it fit but setting this value throws everything completely awry in IE6. For best results should I use seperate stylesheets and browser detect scripts? I was rather hoping to do away with scripting altogether so I'd prefer not to have to go down this path but if needs must.. Many thanks in advance for your assistance, Mik Foggin |
#3
| |||
| |||
|
|
Mik Foggin <mikf (AT) dsl (DOT) pipex.com> wrote Test page is available at http://www.aoov50.dsl.pipex.com/flowers/test.htm It appears to me that I'm falling foul of the 'Box Model' problem which is confusing me as I'm using IE6 and I thought that this correctly implemented the width/border/padding issue? |
#4
| |||
| |||
|
|
IE6 has two rendering modes. In quirks mode it uses the old, broken box model. In standards mode it uses the correct box model. Which mode is used is determined by the doctype used in the document. Your doctype triggers standards mode. But... IE only looks for a doctype on the first non-empty line of the document, so you xml declaration throws it into quirks mode instead. Getting rid of the xml declaration is the easiest solution. Steve |
![]() |
| Thread Tools | |
| Display Modes | |
| |