Re: 2 text alignment on the same line
- From: "Andy Dingley" <dingbat@xxxxxxxxxxxxxx>
- Date: 17 Aug 2006 03:11:14 -0700
Can you not just use divs instead of spans
Choose the elements based on their HTML structure and the allowable
containment expressed in the DTD. You can change their display property
with CSS, you can't change their DTD.
I'd suggest <span> for a couple of reasons:
- It's what the OP already had.
- There's a <br> in there, which somewhat implies an "inline" context
for this fragment, not a "block" context
- Generally one should go for the simplest workable solution.
and float them?
I can't really find much difference between floating a <span> and
floating a <div>. Ideally we'd be using inline-block here, so anything
that forces us into using block instead is something of a hack. That
said, there's not much difference in hackiness between <div> and <span
style="display: block;" >
Writing "Invalid = Obsolete" just isn't a good way to express things.
Logically these are _not_ equal,. because although one _implies_ the
other, this is a one-directional relationship and it doesn't mean the
concepts are in any way "equal".
Maybe all invalid code should be regarded as obsolete (I'd support
that). But valid does have this very particular technical meaning
already and we really can't mess with that by "extending" it. If we do
that, then we degrade our language of expression for talking about HTML
and we lose our ability to talk in detail.
Then we'd just have MySpace instead OMG!! WTF!?
- Prev by Date: Re: CSS: Shift/space between 2 div
- Next by Date: Re: html to css help!!
- Previous by thread: Re: 2 text alignment on the same line
- Next by thread: Re: 2 text alignment on the same line