| 
	
 | 
 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] 
 |