SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict manipura's Avatar
    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

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •