Target elements with multiple classes, within one rule

  • .border-blue.background { ... } is for when both classes are used together.

  • .border-blue, .background { ... } is for either class.

  • .border-blue .background { ... } is for where ‘.background’ is the child of ‘.border-blue’.

See Chris’ answer for a more thorough explanation. Also see W3 Docs on CSS Combinators

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)