Skip to content
CSS Head
CSS links, tutorials, code and demos for web designers and developers
    About Archives Contact Privacy and Cookies Policy Submit a Link Submit Community News
CSS Head
CSS links, tutorials, code and demos for web designers and developers
Home Submit a Link Contact About

Tag: content

CSS Content Property

July 6, 2010

CSS has a property called content. It can only be used with the pseudo elements :after and :before. It is written like a pseudo selector with the colon, but it’s called a pseudo element because it’s not actually selecting anything that exists on the page but adding something new to the page…

csshead comment 0 Comments

Get to Grips with CSS Pseudo-Elements

March 15, 2010

Pseudo elements include :first-line, :first-letter, :before and :after. In the CSS specification, W3C define pseudo-elements like this: Pseudo-elements create abstractions about the document tree beyond those specified by the document language. For instance, document languages do not offer mechanisms to access the first letter or first line of an element’s content. CSS pseudo-elements allow style […]

csshead comment 0 Comments

Pure CSS opacity and how to have opaque children

July 4, 2009

Opacity is a desirable thing in this day and age; especially with the design trends that typified the web2.0 movement. Here are two different methods of achieving CSS opacity. One where the children inherit the opacity, the other where content can have its own opacity level…

csshead comment 0 Comments