Position:absolute and centering |
Position:absolute and centering |
Aug 16 2008, 03:05 PM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 292 Joined: Jul 2007 Member No: 545,047 |
I know when you have position: absolute and you put left: 50% it's supposed to center what you want to center.. but mine isn't? I'm confused. It puts it to the right instead of center.
Here's the code: CODE .heading{ width:700; height:300; background-color:ffffff; border:0px; border-color:000000; border-style:solid; position:absolute; left:50%; font-family:; color:; font-weight:normal; font-size:; letter-spacing:;} |
|
|
|
![]() |
Aug 16 2008, 03:13 PM
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 2,435 Joined: Feb 2007 Member No: 506,205 |
You have to add margin-left:#px in there. Since the width is 700px, set the number to about -350.
|
|
|
|
GunsNRachel Position:absolute and centering Aug 16 2008, 03:05 PM
danielkraus Not sure if this will help, as I am new, but you c... Aug 16 2008, 03:13 PM
GunsNRachel the margin-left thing is just making it go more to... Aug 16 2008, 03:31 PM
schizo It shouldn't. Right now you have nothing to po... Aug 16 2008, 03:34 PM
Da1nonlyjon CODEMARGIN-LEFT= GOES TO THE RIGHT
MARGIN-RIGHT= G... Aug 16 2008, 03:38 PM
GunsNRachel I must be on crack! haha. I just figured it ou... Aug 16 2008, 03:53 PM
schizo Topic closed and moved to Resolved. Aug 16 2008, 03:55 PM![]() ![]() |