...

View Full Version : How to CENTER text but with left margin of 60px and without TABLEs?



pstein
02-06-2012, 02:53 PM
Assume I want to place some text centered on a web page.
BUT: the center place should be calculated with the left margin of 60px.

That means the left border of space should be = left border of browser window + 60px


How can I achieve this?

Peter

SB65
02-06-2012, 03:15 PM
If it's just text, then the following css would achieve what you want:


.mystyle{margin-left:60px;text-align:center}

with (for example}


<p class="mystyle">Centered and offset on the left</p>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum