0

From here - http://www.w3schools.com/cssref/css_selectors.asp -

element+element

div + p

Selects all p elements that are placed immediately after div elements

for example -

div+p {
   ...
}

How could I select the same in sass using the p as nested in div (or any other concept) ?

FIDDLE

Community
  • 1
  • 1
URL87
  • 10,667
  • 35
  • 107
  • 174
  • 2
    Did you look at [this previous answer](http://stackoverflow.com/questions/15246387/css-and-or-sass-sibling-selector-upwards)? – Sir Celsius Aug 25 '14 at 08:13
  • @URL87 The `element+element` selector is used to select elements that is placed immediately after (not inside) the first specified element. – Anonymous Aug 25 '14 at 08:35

1 Answers1

4

In SASS

div {

   + p {
    /* paragraph styles here */
   }
}

or just

div + p

Useful standard CSS selectors article - HERE

Paulie_D
  • 107,962
  • 13
  • 142
  • 161