You are here: Re: left and right text align in li « HTML « IT news, forums, messages
Re: left and right text align in li

Posted by Steve Pugh on 12/14/06 17:42

frank.vandenbogerd@pandora.be wrote:

> how can I do the following :
> http://users.pandora.be/solitaire2/prtscrn.gif

Looks like a table to me.

> I should have a list, and in that list have an right and left
> text-align...

Use a table instead.

> I know I can't use div's in a <li> ,

Rubbish. Divs are allowed inside list items.

> but this is what it should do:

> <li><div style="width:20px;text-align:right;color:#66ccff">12 Dec</div>
> Lorem ipsum dolor sit amet</li>

That's valid but not ideal. What happens when the date is more than
20px wide? Remember that the user may be using a larger font size than
you anticipated. And you forgot to set a background-color with your
color.

> Is there a (valid) solution?

Use a table.

Steve

 

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

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