Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to "break" a row? (maximizing number of <td>-s vertically)

Status
Not open for further replies.

heeeep72

Programmer
Dec 15, 2004
33
CH
Hi All,

I have a row in a table, that uses "forEach" :
Code:
					<table>
						<tr>
							<c:forEach items="${something}" var="somethingelse">
								<td>
								...
								<td>
							</c:forEach>
						</tr>
					</table>


I can have a very long row this way if there are many items. Let's say, I want to have 6 <td>-s at a maximum in a row vertically. The 7th one should come under the first one. ...and so on. What is the best way (is there a way?) to solve this?
(...maybe something with mod / div ?)

Any help appreciated.
heeeep
 
Just as a suggestion, if you're stacking things (like a gallery) in a row and want to cut them at some point and stack more in another row then you're not using table for tabular data. Floating such elements will provide a much better solution and will be much easier to implement.
 
Hi,

Sorry for mistakenly posting into the wrong forum. Is there a way to move this thread to the JSP forum? Anyway, I repeat my question there. Vragabond! thx for your suggestion! I will try to look after Floating

heeeep72
 
Just to let you know: the float worked out perfectly: it made just what i wanted .
Code:
<div style="float:left;">
Thx to Vragabond for the idea and also to Chris Hunt for the example.

heeeep
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top