Previous Message
Next Message

centering a div that floats above everything

Sent by Abyss Information on 11 December 2005 00:12


Hi all

I am trying to center a div but ontop of another div..

here is my code

<div style="width:700px; margin-left:auto;z-index:20; 
margin-right:auto;background-color:#000;position:absolute; 
padding-top:40px;">
asdfdsafdsfdf
</div>it works in IE giving it centered exactlybut in FF it is on the left 
hand side of the page..any suggestions?i tried to float method but that did 
not work...it looks worseThanks heaps Abyss 

______________________________________________________________________
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: