Forums

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

Home Forums CSS Change CSS features for div on single page in WP

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

    Hi,
    do you know how to change background color of .containter div at the bottom of the page? I’d like to do it for this page only, not for the rest.
    Thanks!

    #199501
    gombroo
    Participant

    I tried this:
    body #post-5 .containter {
    background: red !important;
    }

    And nothing chagned.

    #199505
    Paulie_D
    Member
    body #post-5 .containter {
    background: red !important;
    }
    

    Typo there? “container”

    Also, It’s doubtful WP uses ID’s on elements ..I think they use a class on the body as mentioned by Senff.

    Perhaps you could provide a link?

    #199507
    gombroo
    Participant

    Yes, of course, I’m sorry:
    http://arbooz2.vot.pl/start/

    #199518
    Paulie_D
    Member

    Looks like you WP adds a class to the body of page-id-xx

    So your CSS should be something like


    body.page-id-5 .container { background: your color here; }
    #199519
    gombroo
    Participant

    Thanks a lot Paulie! It works like a charm :)

    #199530
    Paulie_D
    Member

    :D

    It’s all in the detail… :)

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