• Resolved Daithy

    (@daithy)


    How do I say “all” in css. I have a page with comments. My theme makes those boxes big an ugly, so I wanna change them, unfortunately I cannot inspect all the comments as one (future ones as well).
    Example
    One of my comments ID is

    DIV#comment-3.comment-body

    another would be

    DIV#comment-4.comment-body

    I need to apply the same rules for all of the comments, even the ones that don’t exist yet. Is there a way to say all?
    like:

    DIV#comment-*.comment-body

    or

    DIV#comment-all.comment-body

    thanks

Viewing 1 replies (of 1 total)
  • Thread Starter Daithy

    (@daithy)

    Sorted it on my own, hell yeah!! 😀
    When you need to target multiple items, forget IDs, use “class” and put a “.” in the beginning

    Example:

    .comment-body {
    blablabla
    }

Viewing 1 replies (of 1 total)
  • The topic ‘CSS help?’ is closed to new replies.