Re: CSS2 implementation

>>>>> "a" == ament  <ament@xs4all.nl> writes:

 a> I'm trying to implement CSS2-stylesheets.. I want to implement it 100%
 a> correctly, but I've got a problem:

Hi!  Sounds fine ...

 a> <HMTL><BODY> TEXT IS NI<EM>C</EM>E </BODY></HTML>

 a> where normal text has a margin-left: 2em
 a> and EM-text has a margin-left: 4em

I assume:
BODY { display: block; }
EM { display: inline; }

In this case, anonymous inline boxes should be created like this:

<HTML><BODY><anon> TEXT IS NI</anon><EM>C</EM><anon>E
</anon></BODY></HTML>

Also, there is no such thing as properties applied to 'normal text',
so I assume you mean that BODY has margin-left: 2em (or that the text
is inside a P with margin-left: 2em).

Thus, it should look something like this (the '|' is the left margin
of the viewport).

 |  TEXT IS NI    CE

... and probably with the C emphasized in some unspecified way.

Read more here: http://www.w3.org/TR/PR-CSS2/visuren.html#q7


-- 
Rasmus Kaj ---------------- rasmus@kaj.a.se - http://www.e.kth.se/~kaj/
 \              Im sorry if the correct way of doing things offends you
  \--------------------------------------------- http://www.Raditex.se/

Received on Monday, 9 August 1999 11:59:52 UTC