Re: Style and <frameset>

On Sat, 12 Jun 1999, Håkon Wium Lie wrote:

| (...)    UL { display: table-row }
|          LI { display: table-cell } (...)

Yes, this is fine. But let's take this HTML fragment :

<head>
 <link rel="start" title="Home page" href="">
 <link rel="prec" title="Precedent document" href="">
 <link rel="next title="Next document" href="">
</head>

My goal is to display this links in a fixed menu on the left 20% of the
page. Let's see the problems. I can write :

	link[start], link[prec], link[next] {
	 position: fixed;
	 width: 20%; height: 100%;
	 left: 0; top: 0; right: auto; bottom: auto;
	}

	body {
	 position: relative;
	 width: auto; height: 100%;
	 left: 20%; top: 0; right: 0; bottom: auto;
	}

Now I can define :

	link[]:before { content: attr(title) }

or according to a proposal for CSS3

	link[] { content: attr(title) }
	/* without a before or after pseudo-element */
	 
First, I can't define that there are links (and the HTML spec doesn't
define that : I can't imagine the UA behavior). Shouldn't CSS provide here
a way to render simple links (it's a problem I've just discovered...) ?

Then, I must draw a table (I can do more simply, but admit I need a
table).

	head { display: none }
	link[] { display: table-cell }

is correct according to the spec. But how can I specify the number of
columns, the table width, etc. since no element in the document source is
defined as being a table, inline-table or even a table-row ?

Don't we need pseudo-elements like :table, :table-row ... to define that
(it's a proposal if the answer to the preceding question is "You can't") ?

| 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

Thanks, it's an interesting example.

-- 
Nicolas Lesbats - nlesbats@etu.utc.fr
85 r. Carnot 60200 Compiegne - France
 +33/0 686 800 908

Plaider <http://wwwassos.utc.fr/~plaider/>

3:-) Moooooooooooooooooooooooo !

Received on Monday, 14 June 1999 15:19:26 UTC