Re: "::inside" Pseudo-Element

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 UTC