W3C home > Mailing lists > Public > www-style@w3.org > December 2005

Re: "::inside" Pseudo-Element

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 31 Dec 2005 17:26:09 +0000 (UTC)
To: Daniel Schierbeck <daniel.schierbeck@gmail.com>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.62.0512311725230.7669@dhalsim.dreamhost.com>

On Fri, 30 Dec 2005, Daniel Schierbeck wrote:
> 
> I often find myself using nested DIV tags when I write XHTML documents. 
> That way I can position the "content" area of the document through CSS.
> 
>  ...
>  <body>
>    <div id="wrap">
>      <div id="header"/>
>      <div id="nav"/>
>      <div id="content"/>
>      <div id="footer"/>
>    </div>
>  </body>
> 
>  #wrap {
>    width: 500px;
>    margin: 50px auto;
>  }
> 
> I want to be able to skip the #wrap element, since it adds neither semantics
> nor structure to the document (it's the only child of the BODY element)

Why not style the <body> element directly?


> As you can see, "::ouside" won't do what I want here (assuming it's a 
> bad idea to generate a pseudo-element *outside* the BODY element).

Why would it be bad?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 31 December 2005 17:27:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:42 GMT