You are here: Re: left and right align on the same line « HTML « IT news, forums, messages
Re: left and right align on the same line

Posted by Neredbojias on 02/11/06 14:08

With neither quill nor qualm, John Salerno quothed:

> If I have a div with some text in it (a date and a time), and I want the
> date left-aligned (default) and the time right-aligned with the right
> side of the div, how would I do that?
>
> I put spans around the date and time and gave them each a class of .date
> and .time, and for time I did:
>
> .time {
> text-align: right;
> }
>
> but that didn't do anything, so I figure maybe I'm not using the spans
> correctly.

You positioned the time within the span to the right of the span...

--
Neredbojias
Contrary to popular belief, it is believable.

 

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

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