Page is a not externally linkable
- WebmasterWorld
-- New To Web Development
---- How to put text in middle of page, but not "center" the text


Demaestro - 5:02 pm on Mar 25, 2010 (gmt 0)


Anon,

In order to do this, use margin:0 auto; to center the div, define it's width and set text-align:left;

This works
<div style="margin:0 auto; text-align:left; width:200px;">
This is a bunch of text. This is a bunch of text. This is a bunch of text. This is a bunch of text This is a bunch of text This is a bunch of text This is a bunch of text This is a bunch of textThis is a bunch of textThis is a bunch of textThis is a bunch of textThis is a bunch of textThis is a bunch of textThis is a bunch of textThis is a bunch of text
</div>


Thread source:: http://www.webmasterworld.com/new_web_development/4104550.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com