Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) Background spanned across browser window

  • Background spanned across browser window

    Posted by Adam Fischer on September 4, 2008 at 4:31 pm

    I have a question about getting a backround to repeat nicely both horizontally and vertically behind a web page so the full browser window looks like a nice complete design. I’m not sure if this is a simple line or two of code or not. I’m hoping it is because I’m not a web designer! Any input is much appreciated.

    Here are some examples of what I mean:

    https://www.reachrecords.com/index.php

    This one just has a simple wooden plank that spans the top of the page but it looks nice.

    https://www.red.com/

    This one is a little different because the background doesn’t move.

    Thanks!

    Curtis Thompson replied 17 years, 8 months ago 2 Members · 3 Replies
  • 3 Replies
  • Curtis Thompson

    September 4, 2008 at 4:40 pm

    hello…

    the first one is flash set to 100% width and height of the browser, and you can set up how a background works in flash in that case…

    the 2nd is a tiled image:

    https://www.red.com/images/common/background.jpg

    and then to hold it in place, they use the css attribute “background-attachment”:

    background-attachment: fixed;

    which holds it in place while the content scrolls over it…

    so to make a background that goes the whole width and height of a page, you either need to make one that tiles (like red.com did) or you need to make one that is always guaranteed to be big enough to catch users with wide browsers and also big enough to catch any height of your content…

    hope that helps!

    sitruc

  • Adam Fischer

    September 5, 2008 at 12:00 am

    Thanks for the info! What do you think is the top end resolution most people are working at. I have my monitor at 1680×1050 and that seems pretty big. Do a lot of people go higher than that?

  • Curtis Thompson

    September 5, 2008 at 12:02 am

    hello…

    oh they can go crazy high, but consider also that surfing at anything much larger than 1280 wide or so is just not very beneficial, so you can probably keep it a bit bigger than that and be ok…

    sitruc

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy