"Neal" <ne**@spamrcn.com> writes:
"Haines Brown" <br****@teufel.hartford-hwp.com> wrote in message
news:87************@teufel.hartford-hwp.com... Oh, I see. Well, this is probably illicit, but it works on my
browser, anyway:
.three, .four {
position: relative;
top: 0.5em;
float: left;
}
<span class="one">one</span>
<span class="two">two</span>
<span class="three">three </span>
<span class="four">four</span>
I love it. As you're putting spaces between the spans and a
non-breaking space within a span, it will reduce to one space
like normal?
a) Re. spaces between spans (two and three/four I assume you mean)
that is done with relative positioning. Isn't that legit for in-line
elements? The space-reduction routine should have no effect here.
b) Re. the non-breaking space within a spam (using &##160;). That
is certainly improper, but works in a practical sense and avoids the
collapsed space to which you refer. If I want to behave myself, I'd
get rid of the " " and add instead a "padding-right: 5px;"
attribute to the style definition of .three and .four.
If I understand your rhetorical question correctly, there is no
"reduction to one space" on my browser (galeon), and I don't see why
there should be. How's it look on your "brouser"? The is not a
space, but an empty character.
One problem with my scheme is that it gets mixed in with other
elements that may happen be on the page, and I don't know how to
prevent that withough resorting to blocks (div). Also, I believe the
two lines should be placed in a container, such as <p>. Am I right? If
so, that would violate one of the parameters of the challenge.
--
Haines Brown
br****@hartford-hwp.com kb****@arrl.net www.hartford-hwp.com