K
KiwiBrian
This is a test snippet within a valid page environment.
My purpose was to explore how to space 3 pieces of text on a line with 20px
of space between them.
As it does not seem to be obeying the margin-top:100px I suspect that the
construction may be functionaly invalid, although it apparantly validates
OK.
I have two queries:
Why is the margin-top seemingly ignored?
Is there a better way of accomplishing my objective?
The basic task that I was investigating was how to add controllable spacing
between text blocks.
<body>
<span style="border:2px solid red; padding:5px; margin-top:100px">12345<span
style="padding-left:20px">67890</span><span
style="padding-left:20px">abcde</span></span>
</body>
TIA
My purpose was to explore how to space 3 pieces of text on a line with 20px
of space between them.
As it does not seem to be obeying the margin-top:100px I suspect that the
construction may be functionaly invalid, although it apparantly validates
OK.
I have two queries:
Why is the margin-top seemingly ignored?
Is there a better way of accomplishing my objective?
The basic task that I was investigating was how to add controllable spacing
between text blocks.
<body>
<span style="border:2px solid red; padding:5px; margin-top:100px">12345<span
style="padding-left:20px">67890</span><span
style="padding-left:20px">abcde</span></span>
</body>
TIA