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

Posted by Greg N. on 08/11/05 17:01

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>

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?

--
Gregor's Motorradreisen:
http://hothaus.de/greg-tour/

 

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

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