Reply to Re: left and right align on the same line

Your name:

Reply:


Posted by Jim S. on 02/13/06 03:32

hi, i was looking at your example, and i like it, am using dreamweaver 8 but
i noticed unless i write <span> manually, i can not seem to replicate your
example. (well almost, since what happens is, the div tag disappears but the
alignment happens)
do i really have to write <span> since even if i do that and apply a class
to it, it does not show like your code, so what am i doing wrong?

thanks if u answer this

jim

"Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote in message
news:14lkmc8i72nem.1s0rg0dwvhdwf.dlg@40tude.net...
> John Salerno wrote:
>
>> 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;
>> }
>
> You need to use floats. See the source of this page of mine.
> http://k75s.home.att.net/banner.html
>
> --
> -bts
> -Warning: I brake for lawn deer

[Back to original 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

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