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: Member Posts: 62 Joined: Aug 2008 Member No: 676,822 |
Not sure if this will help, as I am new, but you could add this
CODE top:0%; If that does not work, I sometims will use CODE margin-left:XXXX;_margin-left:XXXX; margin-top:XXXX;_margin-top:XXXX; This may work it may not, but I usually try these options first. Hope it at least helps a little. ****************** Read what schizo wrote below, I missed the lack of "px" on your width and height.
Reason for edit: Use [code] for smaller codes. - Gabi. ;)
|
|
|
|
GunsNRachel Position:absolute and centering Aug 16 2008, 03:05 PM
schizo You have to add margin-left:#px in there. Since th... 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![]() ![]() |