W3C home > Mailing lists > Public > www-style@w3.org > June 2004

div class and alignment

From: Sheldon Swift <weasal1046@hotmail.com>
Date: Wed, 02 Jun 2004 12:05:44 -0400
To: www-style@w3.org
Message-ID: <BAY2-F136BLldQfT0cZ0003e594@hotmail.com>

In the stylesheet for a website I am designing, I have the following code:

div.lix {
position:absolute;
top:0px;
left:0px;
}

This code is a portion of a serious of parameters for the div class, and 
that particular section is a fix for IE slowness on the css blend menu I am 
using the code to create.  This is all well and good since the menu works 
and is placed on the site where I want it to be placed.  However, this DOES 
override the <div align="center"> code in the body.  I don't know if anyone 
else has ever run into this problem but if anyone knows how to get the 
design to center relative to the browser window I would love to know how.  
Also, changing the values of the position:absolute DOES work, however it 
DOES NOT go to position:absolute center when I set top and left to 50%.  If 
you email me personally I can send u the code if you think you can help.  
Thanks!

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page  FREE 
download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/
Received on Wednesday, 2 June 2004 12:06:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:30 GMT