Forums

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

Home Forums CSS CSS-set background image won’t change for other pages

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #34602

    I have added in a background image in my CSS

    {
    background: url(urlhere) no-repeat center center fixed;
    }

    but it becomes background image for all my pages. How can I revert my other pages to a simple color?

    I’ve tried putting these in my CSS:

    #bg {
    background: url(urlhere) no-repeat center center fixed;
    }

    and

    #nonbg {
    background: #f01020
    }

    and putting and in the HTML of each of my pages but it won’t work

    #88348

    Okay, I put

    on the HTML of each of my pages that I want the other background

    and in CSS I have body {background: url(stuffhere.jpg) } as the default for all pages

    then I have #other {background: #404040 } for all the “others”

    but the new background (#404040) is only covering half the page… could one of you guys mind taking a look?
    http://www.montagemd.com
    the main page is good (the castle), but if you browse any of the videos, I want a grey background for the entire site

    #88352

    yes fourize.. I want the grey background to fill.

    I think what the problem is, is each video isn’t a separate page.. it’s just a project. So when I use

    , it accesses the grey background, but only fills it for that div, which doesn’t occupy the whole background..
    #88353

    ps i’m using

    on that page, and

    for my first page

    with #rest and #bg in my CSS with respective backgrounds

    #88355

    hmm okay, so do i need to create 3 separate CSS sheets? I don’t have access to the CSS file directory because I’m using Cargo Collective

    #88356

    i just don’t understand why

    will give that project a grey background but how i can’t over-ride the body background. I’ve tried but nothing happens
    #88370

    i just google’d “how to wrap divs” and am confused..

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