W3C home > Mailing lists > Public > www-style@w3.org > January 2003

proposal: div tags affecting other div tags from inside the css

From: Franklin Einspruch <franklne@gate.net>
Date: Sat, 18 Jan 2003 11:41:27 -0500 (EST)
Message-Id: <7DF540FA-2B03-11D7-ADB0-0003937BAA70@gate.net>
To: www-style@w3.org

I want to thank everyone who responded to my layout sheet proposal  
(http://lists.w3.org/Archives/Public/www-style/2002Dec/0176.html) with  
such merciful  regard for my computerese-as-a-second-language status. I  
had a look at the suggested links. Duly chastened, I went to study  
http://www.wired.com for tips on cutting edge recommended layouts, and  
found this:

<!-- BEGIN Logo and Search -->
<div id="hdr">
<form id="wnsearch" action="http://r.wired.com/search">
<div id="hdrLeft">
<div id="hdrLogo"><a href="/"><img  
news/v/20020914/images/cs6/logo28_wirednews.gif" alt="Wired News"  
title="Wired News logo, links to home" width="256" height="28"  
class="block" /></a></div>
<p class="none"></p>
<div id="hdrSch">
<span class="schLabel"><a name="search"  
class="skiplinks"></a><strong>Search:</strong></span><br />
<select size="1" name="url">
<option value="http://search.wired.com/wired/default.asp?query=">Wired  
=MDRTP&amp;MT=">HotBot (the Web)</option>
<input type="text" size="20" name="query" value="" class="sb" />
<input type="submit" value="Search" class="schbtn"/>
<!-- END Logo and Search -->

At which point I concluded that this just as big of a failure to  
separate presentation from content as any table-based layout, although  
it does use fewer tags. I mean, <div id="hdrLeft">? Just put the thing  
in the first cell of a table and be done with it, for heaven’s sake.  
What if they ever decide that all the stuff in hdrLeft ought to be on  
the right? They are going to edit all the affected documents one page  
at a time, or they are going to live with a container called hdrLeft  
that puts the contained content on the right. What if they decide their  
whole hdr ought to be a ftr or a sdbr? Ditto.

I defer to the experts that the layout sheet was a flawed idea, but  
there’s still the problem above. Unless I’ve misunderstood the CSS2  
specs - a highly likely scenario - there’s not a solution in the works.

My next idea is to enable div tags to affect other div tags from inside  
a css document. A three-column layout might look like this (not really,  
but you get the idea).

#wrapper {display: put-everything-side-by-side-in-order-of-appearance}
<div id=”wrapper”>

This would make it possible to affect the layout of all linked  
documents right from the css:

#wrapper {display: put-everything-side-by-side-in-order-of-appearance}
<div id=”wrapper”>

Or even:

#wired {position:  
<div id=”wired”>

Again, thanks to all for their patience. Here’s hoping that this  
expectoration causes the whole sea of CSS to rise, however minutely.  
Otherwise please just hit the Next Message link and pretend I’m not  

Franklin Einspruch
Received on Tuesday, 21 January 2003 10:02:51 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:05 UTC