BuddyDev

Search

[Resolved] A tip for CSS needed

  • Participant
    Level: Enlightened
    Posts: 134
    HansRuedi Keller on #25744

    Hi Brajesh,
    I have this in my child themes CSS…

    #post-0 > div > header > h1 {
    background-color: #FAF9FA;
    border-style: solid;
    border-color: #EEEDEE;
    border-width: 1px;
    padding: 0 0 3px 10px;
    }

    I need that for all #post-<number> (up from zero to any number) with ONE exception: the post with number 1065 has to be excluded for a separate kind of style.

    Do you have a tip for me how to do it?
    btw: That will be an “add-on” to bp-nouveau to make it a little bit nicer 😉

    Thanks for help, Hans

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #25752

    Hi Hans,
    Thank you for the question.

    To accomplish this you will need 2 things.

    1. A different selector to select all the posts(ids select one)
    2. :not pseudo selector to specify the id of the excluded post.

    Please link me to the site and I can check the selector and post the complete code.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 134
    HansRuedi Keller on #25791

    Same here: let’s close the ticket. My intention was kind of an overkill. I’m a designer and sometimes it’s to much…

    Regards,
    Hans

  • Keymaster
    (BuddyDev Team)
    Posts: 24599
    Brajesh Singh on #25795

    Hi Hans,
    As you please 🙂

    Regards
    Brajesh

The topic ‘ [Resolved] A tip for CSS needed’ is closed to new replies.

This topic is: resolved