CSS2 implementation

Hi there!

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

--Intro--------------------------------------------------------------

It's about inlineboxes and different margins

I have a html-source:  <HMTL><BODY> TEXT IS NI<EM>C</EM>E </BODY></HTML>
and I want to display it on the screen with enough width (you don't have to
break the "TEXT IS NICE" sequence..; it can stay on 1 linebox)

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

--Question-----------------------------------------------------------

Should I use 1 or 2 ?

1) should "TEXT IS NICE" be completely interpreted as 1 inlinebox and so 1
time the margin-left is being used.
2) should "TEXT IS NI" , "C" , "E" be interpreted as 3 different inline
boxes and their margin-left be applied to all the 3 of them. (resulting in
a very ugly line of text)


I hope any of you could anwser the question and that I haven't overlooked
anything in the documents on www.w3.org

greetings,

Mark

Received on Thursday, 5 August 1999 11:02:15 UTC