CSS Syntax – Dependency relationships

  • Unknown's avatar

    I’m new to css and have a simple syntax question. I’m trying to understand what something like the following means:

    .post .post-content img.alignleft, .attachment img.alignleft{ margin-left: 0; }

    I’m confused about why there are 3 elements without a comma between them. Is this to specify a dependency relationship? I thought dependency selectors would only have 2 items with a space in between, not 3 as shown here.

    Thanks!

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • The topic ‘CSS Syntax – Dependency relationships’ is closed to new replies.