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>

we would just do:

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

and add this in the CSS file:

#head:container {

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:47 UTC