How do u center a page for all resolutions ?

liunx

Guest
Hi, <br />
I needed help on HTML.<br />
How do you get your pages to center on your screen no matter what the resolution is ? I am talking of usual pages on a web site, with text and images. The entire page should appear at the center. In my code I have a table tag with width="100%". All the other elements of the page are within this table tag.<br />
<br />
Thanks,<!--content--><table align="center" since it seems you are using tables but please refer to this. <!-- m --><a class="postlink" href="http://forums.webdeveloper.com/showthread.php?s=&threadid=11484">http://forums.webdeveloper.com/showthre ... adid=11484</a><!-- m --><!--content-->see i have that same problem. My site is in resolution of 1280X1024, and i have problems with people coming to the site in 800x600 (get with the times or just get some glasses), and they cant see anything. Orginally I was working with a split farmne in the mainframe. This caused difficulties with people with lower resolutions. So my best suggestions is just to make a 1024x768 page when you create it, because that is overall the one mostly used.<!--content-->Tables should not be used merely as a means of obtaining desired layout. Your HTML document should make sematic sense, and CSS should be used for layout. There are a lot of posts on this forum regarding this issue, and it may be helpful reading them. I guess I am playing devil's advocate here... but really this is what you should do if you intend to do any serious web development.<!--content-->Is this what you mean by center: <!-- m --><a class="postlink" href="http://www.infinitypages.com/research/cssverticalcentereddiv.htmIf">http://www.infinitypages.com/research/c ... ddiv.htmIf</a><!-- m --> you don't want it to center vertically, you just need margin: auto (and maybe text-align: center for browsers that suck with CSS support [think IE]...)<br />
<br />
Originally posted by Baby Jai <br />
So my best suggestions is just to make a 1024x768 page when you create it, because that is overall the one mostly used. Actually, 800x600 is: <!-- m --><a class="postlink" href="http://www.thecounter.com/stats/2003/May/res.php">http://www.thecounter.com/stats/2003/May/res.php</a><!-- m --> So, your site should definitely work at that res, and if you decided to support lower is up to you...<!--content-->thats based on your site. That could mean a variety of things. That could mean you run a site for an older people home. LOL. My site is mainly viewed at by teenagers and some older people. This is based on what type of content and how you submit your site to search engines on who visits your page and what people prefer. My site statistics are at 1024x768.<!--content-->Originally posted by Baby Jai <br />
thats based on your site.Nope. That is based on thecounter.com's accumulative (I'm assume) stats. The stats are based on 38,113,581 visitors in that one month alone. That being said, the most important stats for you are the ones that your site is showing....<!--content-->
 
Back
Top