Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Two backgrounds

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30390
    Roxon
    Member

    I’ve seen a lot of websites lately with a main background above the fold, and below there’s a kind of gradient or a just plain color. Is the only way to accomplish this through an image tag made into a background, or is there a way to do it via background-image and CSS?

    #78983
    jamygolden
    Member

    You could do this:

    body{background: #ccc url(../images/example.jpg) repeat-x left top;}

    That way there will be a colour once the image stops.
    Also, you could have a look at Chris’ css3 gradient article. Perhaps you could have a CSS3 gradient with a fallback flat colour.

    #79000
    Roxon
    Member

    Sweet thanks a lot!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.