Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of hnla

CSS Question: Target a specific div in a div in a div.. possible? (4 posts)

Started 1 year, 5 months ago by: Bowe

  • Profile picture of Bowe Bowe said 1 year, 5 months ago:

    How’s that for an confusing topic title?! But it’s exactly what I want to do..

    can I somehow target the following element:

    I tried all kinds of things from complicated to really easy, but I can not seem to target that specific element.. I want to style a certain activity type to make it stand out a little bit more :-)

    Thanks in advance

  • Profile picture of @mercime @mercime said 1 year, 5 months ago:

    div.activity-inner { }
    and in specific page
    body.specific-page div.activity-inner { }

  • Profile picture of Roger Coathup Roger Coathup said 1 year, 5 months ago:

    If you just want to style it for new blog posts:

    li.new_blog_post div.activity-inner {
    }
  • Profile picture of Bowe Bowe said 1 year, 5 months ago:

    @rogercoathup and @mercime : thanks guys.. I know now the correct ways of targeting divs inside divs.. learned something new instead of just trying random things.. cheers :D