Log in

View Full Version : Divs not positioning correctly in IE



Styles2304
07-11-2007, 03:41 AM
I use the code:


div.MyContactTable {position:absolute !important;
top:349px;
left:50%;
margin-left:-82px;}

div.MyMusicTable {position:absolute !important;
top:180px;
left:50%;
margin-left:-82px;}


Then set the div to whichever class. The thing is, the positioning doesn't work.

Since I'm using absolute positioning, I don't know what else to do.

See what I mean here: http://www.myspace.com/styles2304

In firefox it loads just fine, but in IE it looks like crap.

Any help would be GREATLY appreciated.

Styles2304
07-11-2007, 04:20 AM
Something I forgot to mention . . . since this IS for MySpace, it rules out the use of java script. Does that mean that the differences in the way IE and FF reads css is just something I have to deal with?

riptide
07-11-2007, 02:35 PM
okay don't use margin to possition a div you will run problems. use

left:-82.