- From: (wrong string) åkon Wium Lie <howcome@operasoftware.com>
- Date: Sat, 12 Jun 1999 08:41:31 -0400 (EDT)
- To: www-style@w3.org
Nicolas Lesbats wrote:
> Today, frames and tables are very used for styling web pages. Of
> course, this doesn't allow to separate content and style. Have anyone a
> kind of ideal, workable solution to solve the problem ?
Tables and frames in themselves are not the problem -- the problem
arises when tables and frames show up in the markup.
CSS2 supports tables and frames-like layouts in style sheets. Here's a
simple example of how to present using tables -- but without table
elements:
<HTML>
<STYLE>
UL { display: table-row }
LI { display: table-cell }
</STYLE>
<BODY>
<UL>
<LI>first list element
<LI>second list element
<LI>third list element
</UL>
</BODY>
</HTML>
Mozilla will render the above document correctly. And Opera has a
yet-unreleased implementation.
For an example of a frames-like document, see the example in the CSS2
specification [1].
[1] http://www.w3.org/TR/REC-CSS2/visuren.html#fixed-positioning
-h&kon
Håkon Wium Lie http://www.operasoftware.com/people/howcome
howcome@operasoftware.com simply a better browser
Received on Saturday, 12 June 1999 17:15:06 UTC