Go Back   CP Web Hosting - reseller hosting > Browser Scripting, HTML, XML and Multimedia > CSS
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-19-2007, 09:51 AM
Senior Member
 
Join Date: May 2007
Posts: 244
Default mechanism to make the span elements go to a new line

Hi,

I'm having a php loop which generates x amount of <span> elements in a <td>

<td>
<span>text</span>
<span>text</span>
<span>text</span>
<span>text</span>
...
</td>

The amount of spans is dynamic and now known upfront. The problem is that the <td> is 800 width, and if there are too many span elements, the td gets too wide (800+). Is there some sort of mechanism to make the span elements go to a new line when the end of the td is reached?
Reply With Quote
  #2 (permalink)  
Old 06-19-2007, 09:53 AM
Senior Member
 
Join Date: May 2007
Posts: 267
Default

try <br /> after each <span>
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:47 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0