|
|
#1 (permalink) |
|
New Member
![]() Join Date: Aug 2008
Posts: 1
|
Hey all,
I recently purchased some webspace and created a webpage with Microsoft Publisher. Nothing super specail but it made me a webpage that does the trick! When the page is loaded on any computer it doesnt center itself of the internet browser. rather it is stuck to the left side. I'm not 100% sure on how to fix this. I tried going into the html and putting <center> </center> right between <html> and <body> but that sure didnt work. Anyone know the trick? |
|
|
|
|
|
#4 (permalink) |
|
Silver Member
![]() Join Date: Aug 2008
Location: Lake Tahoe
Posts: 194
|
To add to Streamline's solution:
If you define a width < 100% for the containing <div> and set it's side margins to auto, this will center the div. Setting text alignment to center will center the content within that div. So: <div style="width:800px; margin:auto; text-align:center"> <p> Your centered content</p> </div> |
|
|
|
|
|
#5 (permalink) | |
|
Bronze Member
![]() Join Date: Aug 2008
Location: Dallas, Tx
Posts: 83
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|