DotDragnet
May 23, 2012, 08:48:42 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: follow us on twitter @dotdragnet
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: css woes  (Read 1308 times)
SLEE
Hero Member
*****
Posts: 824



View Profile WWW Awards
« on: July 09, 2007, 05:32:40 PM »

i want to absolute position a div that centers another div:

Code:
<body>
<div style="position:absolute; width:100%; text-align:center; background-color:#FF0000;"><div style="width:780px; background-color:#000066; text-align:left;">lee</div></div>
</body>
</html>

why doesnt it work in ff?
Logged

SLEE - still the most confusing ddner...

Follow me on Twitter
Rosco
Global Moderator
Hero Member
*****
Posts: 917



View Profile Awards
« Reply #1 on: July 09, 2007, 05:46:14 PM »

Code:
<body>
<div style="position:absolute; width:100%; text-align:center; background-color:#FF0000;"><div style="width:780px; margin-left:auto;
margin-right: auto; background-color:#000066; text-align:left;">lee</div></div>
</body>
</html>
Logged
SLEE
Hero Member
*****
Posts: 824



View Profile WWW Awards
« Reply #2 on: July 09, 2007, 06:05:11 PM »

nice one not my best day thanks smile
Logged

SLEE - still the most confusing ddner...

Follow me on Twitter
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!