- - WebmasterWorld
- -- New To Web Development
- ---- How to put text in middle of page, but not "center" the text
mack - 5:32 pm on Mar 25, 2010 (gmt 0)
No matter what a page looks like it is built out of rectangular sections...
On the web even a circle is built out of rectangles. A div is a term used to refer to such a region.
Lets say you have a simple page with a header, a left menu, main content area and a footer. Each of these sections is a rectangle and can be declared as a div.
When you specify a div you can assign values to a div. The values will be passed to items within the div they relate to.
|<div style="margin:0 auto; text-align:left; width:200px;"> |
Your text here
Hope this helps.
Thread source: http://www.webmasterworld.com/new_web_development/4104550.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com