This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > July 2004 > Positioning bug in IE ? (repost)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Positioning bug in IE ? (repost)
Nico

2004-07-30, 7:15 am

Hi folks

(For some reason, my message didn't show up)
I am having troubles with float & positioning with IE.

Here is the layout I am trying to achieve :
http://nzeches.free.fr/img/layout.jpg
- a Header
- a menu in the left column
- a main content area
- a footer
In the main content area, I have :
- a horizontal navbar,
- a box #1 (which contains <select>'s) on the left ; width=20em
- another block #2 beside the previous one which may contain a large image
; if the image's width overflows the viewport width, I need the browser to
scroll horizontally
- some extra text, which shall be displayed after the tallest of box #1 & #2

A sample code (including CSS) is at http://nzeches.free.fr/mto.htm
Basically the solution is :
- a header <div>
- a container <div>
- the footer (clear:both)
The container encloses 2 divs : a menu <div> (left floated), and the main
content <div> with a left margin
The main content div includes a layout (and styling) similar to the main
layout
- the navbar (inline unordered list, with left-floated items),
- a container, with box#1 (left floated) and box #2 (left margin)
- a "spacer div" (clear:both) before the remaining text

in Firefox the page apparently displays correctly
in IE6 the box#2 is displayed far down from the navbar

Do you have any idea what causes this discrepancy ?

TIA
--
NZ


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews