|
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
Navigation:
[Reply to this message]
|