Suggestion > CSS > Pseudo element > Container

I'm sending this message to make a suggestion for CSS: a pseudo element
to create a container inside a element, wrapping their contents. For
instance, instead of doing this in a HTML file:

«
<div id="header">
      <div id="header-container" class="container">
              <p>Hello world!</p>
      </div>
</div>
»

we would just do:

«
<div id="head">
     <p>Hello world!</p>
</div>
»

and add this in the CSS file:

«
#head:container {
}
»

Regards
     Pedro Amaral Couto

Received on Monday, 6 September 2010 14:48:39 UTC