Forum Moderators: mack

Message Too Old, No Replies

Want website to be centered on the screen

My site is on the left hand side...what do I need to change in the code

         

jtmoney77

8:55 pm on Apr 26, 2004 (gmt 0)

10+ Year Member



I can't figure out how to make my site be centered on the monitor by the viewer. I noticed if you have a flat screen (no matter what size) my site is based on the left hand side. What code do I need to change to fix this. I would rather have it centered. Check out the site here if you want to know what im talking about.
Thanks for your help!

PatrickDeese

9:07 pm on Apr 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just add this to the start and end of you body code:

<div align="center">
<div>

(website)

</div>
</div>

--

to be safe, I added two divs, in case the first one centers your text on the pages as well - a second one puts a "container" around the code and it gets treated as a unit.

encyclo

11:34 pm on Apr 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might want to try this thread:

[webmasterworld.com...]

It explains all the various methods, as well as the problems and pitfalls associated with fixed-width sites.