
July 2nd, 2005, 05:11 PM
|
|
|
|
Join Date: Apr 2007
Posts: 173
Time spent in forums: < 1 sec
Reputation Power: 2
|
|
|
CSS positioning
I am trying to place an element in a page that will over lap other elements. If I use
position: relative;
the element (a div cell) gets to far down on the page.
If I use position: absolute to specify the verical position but not the horizontal it works perfectly in Firefox, but not IE (because IE requires both a vertical and horizontal specification in their abosolute positioning)
works in Firefox, but not IE
Code:
position: absolute;
top: 170px;
I cant specify a horizontal position because the div cell needs to be inside another cell that is centered (so when the window is resized the main cell moves around. Here is the page because I'm sure my explanation is confusing.
http://www.davenport-rock.com/news.php
If you look at it in fire fox it looks good, but in IE, its not lined up right. Does someone know how to make this work in IE (and other browsers)?
|