Log In · Register

 
Position:absolute and centering
GunsNRachel
post 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:;}


 
 
Start new topic
Replies
schizo
post 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.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: