You are here: Re: add line breaks through css? « HTML « IT news, forums, messages
Re: add line breaks through css?

Posted by Spartanicus on 08/11/05 17:23

"Greg N." <yodel_dodel@yahoo.com> wrote:

>I have a some text that is include (through PHP) in different pages:
>
><div class=mystuff>item 1</div>
><div class=mystuff>item 2</div>
><div class=mystuff>item 3</div>

Div soup, use the appropriate structural and semantic markup instead.

>On one type of page, these items should appear on separate lines, as if
>they were sparated by <br>.
>
>On another type of page, the items should appear side by side, separated
>by spaces.
>
>The difference between the two cases should be coded in CSS only. Can
>anybody give me a hint on how to do this, if it is possible?

Depends on the markup, for a list:

ul li{display:inline} to switch it to inline ("list-item" is the
default).

--
Spartanicus

 

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

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