Reply to Re: CSS Text between Li items

Your name:

Reply:


Posted by Mitja Trampus on 02/28/06 02:33

davidjdoherty@gmail.com wrote:
> <UL>
> <LI>Text1</LI>
> <LI>Text2</LI>
> <LI>Text3</LI>
> </UL>
>
> Basically I want it to display like this: [using CSS only]
>
> Text1 - Text2 - Text3

To make those dashes real text, you'd need parts of CSS that are not yet widely supported
(see "content" property in CSS specs) and are not about to be in the near future (IE!).

You can, however, make that dash with a non-repeating background image on the LIs. To hide
the first dash, apply some negative margin to LIs (to shift them left) and set UL's
overflow to hidden (to clip off the left part of the leftmost LI).

I've never done this, not even as a test, but it should work.

[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

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