Previous Message
Next Message

centering a div that floats above everything

Sent by Christian Montoya on 11 December 2005 01:01


On 12/10/05, Abyss Information [EMAIL-REMOVED]> wrote:
> that didn't work,  now its in line with all other elements
> and not "above" them, so that it is above it...
>
> thanks anyway for your help

You need to read up more about CSS, because what you are trying to do
is not simple. You can't combine margin:auto with position absolute.
If you want to center a div with position absolute, do:

position:absolute; left:50%; margin-left:-350px;

There are some more complicated methods but this is pretty good if you
are starting out.

--
--
Christian Montoya
christianmontoya.com ... rdpdesign.com ... cssliquid.com
______________________________________________________________________
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: