W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Suggestion > CSS > Pseudo element > Container

From: Pedro Amaral Couto <pedro.amaral.couto@gmail.com>
Date: Tue, 17 Aug 2010 15:33:24 +0000
Message-Id: <1282057903.5888.1.camel@pedro-laptop>
To: www-style@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:31 GMT