Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Is html:before allowed? Re: Is html:before allowed?

#55560
fjorko
Member

What if you gave your HTML element a repeating background (texture ). What if you wanted to overlay that with another image that is sort of transparent ( png ) in order to still see the html background but with the new semi-transparent image superimposed on top of the html background – think “Silverback multiple background” sort of scenario featured elsewhere on this site…

Can this be done by using the :before or :after pseudo selectors on the “html” tag ?, or do these pseudo selectors only work on classes, id’s and other standard html tags ( “p”, “a”, “ul” etc ) ?

Thanks