CSS - context used styling? -


i thought possible, tells me it's not.

i want context styling in css file like:

div#foo {  h2 {    color: #f42  }  p.bar {    font-size: 12px  } } 

so h2 , p.bar in div id foo styled. or possible less , other similar libs?

thanks & kind regards, jurik

this not possible pure css, that's why should use scss or less (i suggest use sass/scss), css supersets

less/sass-scss allows write dynamic css ease, take @ this comparision

check out compass main reason why suggest sass/scss


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -