Forums

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

Home Forums CSS Multiple Header Colors

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #23257
    ponyack
    Participant

    Hi,

    I have six pages and each header needs to have its own color.

    Any suggestions on what would be the best way to accomplish this?

    Thanks

    #49786
    Michael
    Member

    hmm, not sure what you mean but maybe this helps you:
    what about giving each page body a unique ID and then style it in the CSS?

    Code:
    Code:
    #page1 .header {
    color: green;
    }
    #49790
    ponyack
    Participant

    Thanks for the reply.

    Sorry for the confusing question. I am still new to CSS

    I have three divs [header,wrap,footer] each has a background image applied to it.

    On each page I need a new background image.

    So on my home page inside the divs the background image would be blue.
    Then on the about us inside the dive the background image would be yellow.

    I know there is a better way to explain this but please bear with me.

    hope this makes some kind of sense

    but any help would be great

    Thanks

    #49791
    brandon
    Member

    same concept

    #page1 .header {
    color: blue;
    background: url(/path/to/your/image)
    }

    In order to leave your markup the same, have some CSS that relates to each custom page

    #49810
    ponyack
    Participant

    Great,

    i will give i a try.

    Thanks for the reply.

    #49813
    ponyack
    Participant

    Okay,

    I figured it out. But thanks for the help.

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