You are here: Re: 2 text alignment on the same line « HTML « IT news, forums, messages
Re: 2 text alignment on the same line

Posted by Andy Dingley on 08/17/06 10:11

Neredbojias wrote:

> 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!?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация