SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Side color if 1024x768
-
Jun 28, 2006, 20:06 #1
- Join Date
- Apr 2001
- Location
- Calgary,AB
- Posts
- 345
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Side color if 1024x768
I'm building a site that is built for 800x600 viewing. It has a yellow background.
Now if someone views from a larger screen, I want both sides, whatever isn't used by the main page to be red. and maybe eventualy have an image running down the sides.
I thought of doing it with a table, but then I realized that anyone viewing 800x600 would have to scroll to the side in order to view the page.
Mike
-
Jun 28, 2006, 21:09 #2
- Join Date
- Oct 2005
- Location
- Brisbane, QLD
- Posts
- 4,067
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Put your layout in a container (or style the body element itself), make it 800px wide (should be less than that actually - about 760-780px) and give it margin: 0 auto.
Bookmarks