Sunday, November 21, 2010

Using CSS to position with percents.?

Hey, how would I use CSS to position WITH percents. Because using pixels WILL change the view of the page, when changing resolution. If i have the following for text on the right:



p.pos_abs

{

position:absolute;

right: 5px;

left:55%;

top:175px;

}



I want the text to be 55% away from the left margin, so what would I do? not sure if the above is right, since IT DIDNT work.





please help, alexUsing CSS to position with percents.?
You may want to try:



p.pos_abs

{

position:absolute;

margin-right: 5px;

margin-left:55%;

margin-top:175px;

}

No comments:

Post a Comment