Connecting Tech Pros Worldwide Forums | Help | Site Map

Questions About My New Web Site

tharden3's Avatar
Site Addict
 
Join Date: Jul 2008
Location: Ocala, FL (United States)
Posts: 817
#1: Aug 3 '08
Alrighty guys, I'm off to a good start. Got the Web page running (with all your help and tips, so thanks), it's on 110MB.com free web hosting. I've run into a problem though. I have forgotten all about screen resolution. I myself have an 800x600 screen, and because I am still newbie-mistake-prone, I have set up my web page to fit my screen and my screen only. When I used my sister's computer with a 1024x768 screen res., it looked very small and was placed in the top left corner of her screen. I understand that I need to put a "filler" background on either side of the page so that it appears correctly on both screens. My question is:
- I notice on legitimate sites like Microsoft, Myspace, or IGN.com, that the "filler" space on either side disappears on my screen so that it fits right. On my sisters larger screen, the "filler" space appears on either side of the web pages so that it is center on her 1024x768 screen.
- How do I make this filler along the sides of my web pages?
- What do I have to do to make it appear without it on 800x600 screens, and make it appear with it on larger screens?

There are a lot of people with the 1024x768 screen resolution out there, and this is a big problem for me. Please help me fix it.

drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,566
#2: Aug 3 '08

re: Questions About My New Web Site


Never mention "legitimate site" and myspace in the same breath.

You don't have to have a filler. You can just center what you have. If there's one container that holds everything, just add 'margin:0 auto' to its CSS and that should center it.

If you do want some kind of background image or color, that's simple enough using background-image or background-color of CSS.
tharden3's Avatar
Site Addict
 
Join Date: Jul 2008
Location: Ocala, FL (United States)
Posts: 817
#3: Aug 3 '08

re: Questions About My New Web Site


Quote:

Originally Posted by drhowarddrfine

Never mention "legitimate site" and myspace in the same breath.

You don't have to have a filler. You can just center what you have. If there's one container that holds everything, just add 'margin:0 auto' to its CSS and that should center it.

If you do want some kind of background image or color, that's simple enough using background-image or background-color of CSS.

gracias drhowarddrfine
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,566
#4: Aug 3 '08

re: Questions About My New Web Site


I forgot to add: remember that the <body> is an element like everything else. So if you don't already have everything in a container, you can always just center the body.
Reply