Previous Message
Next Message

IE positioning error

Sent by Gunlaug_Sørtun on 6 September 2005 03:03


Andrew Mason wrote:

> http://policytree.org/tree.php? 
> root=1&active=1&PHPSESSID=4cff8731191b9c0c9694971b188a1c8e
> 
> now take a look in IE; the image falls down below the sidebar.  This 
> doesn't happen for all the graphs, just the ones that go off the edge
> of the right side of the page.  Anyone know how to fix this?

One option:

#sidebar {
	float: left;
	width: 200px;
  margin-right: -200px;
}
....removes float[1]. The sidebar acts as the combination of a float and
an absolute positioned element.
In short: sidebar doesn't take up space, but display as normal.

#graph{
	margin-left: 201px;
float: left;
display: inline;
}
....float the wide element and correct 'margin-doubling-bug' in IE/win.

regards
	Georg

[1]http://www.gunlaug.no/contents/wd_demo_float_03.html
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: