Harry Roberts: Quasi-qualified CSS selectors

Part way down Harry’s post, I found this gem.

/*html*/.product-page{
[styles]
}

I write the element in a comment so that it reads properly (a html element with a class of .product-page) but without altering the specificity at all.

Genius!


 
Experience EXPERIENCE

Working with clients for over 25 years

Articles ARTICLES
Contact us OK, LET’S TALK

Press to call 01745 851848

go.bananas@stuffandnonsense.co.uk