Elli Vizcaino wrote:
> Hello,
>
> I have a link that I've absolutely positioned in a relatively positioned 
> container so that it sits 50px up from bottom of container. In order for me 
> to get the link to look centered I had to style it like so: 
>
> #jobad {position: relative; width: 298px; height: 250px; border: 1px solid 
> #000;}
> a {position: absolute; left: 76px; bottom: 50px;} 
>
> I wanted to give the left property a value of 50% but that didn't exactly 
> center it. So I resorted to using a pixel value. Can someone explain why 
> declaring "left: 50%" didn't work?
>
>   

Elli:

It appears that "left: 50%" is putting the link's left most position at 
149px, which is 50% of 298px.  This is using the leftmost edge of the 
link, not the center of the link like you want, which is why it looks funny.

There are other options you can explore for centering your link other 
than absolute positioning if you have other options available...

-Adam Ducker
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to