Copy link to clipboard
Copied
Hi guys, I need my cfoutput to align horizontal, for some reason it keeps puping up vertical. Any suggestions?
<table width="95%" border="0" cellpadding="0" cellspacing="3">
<cfoutput query="getTeamMembers">
<tr>
<cfoutput query="detailled">
<td width="100">
<cfif HasCV eq 1>
<a href="ADM/#LastName# #FirstName#.pdf" target="_blank"><img src="../../../../Photo's/#id#.jpg" width="70" /><br />#FirstName# #LastName# </a>
<br />#Position#
<cfelse>
<img src="../../../../Photo's/#id#.jpg" width="70" /><br />#FirstName# #LastName#<br /><th width="21%" style="vertical-align:top; text-align:left">#Position#</th>
</cfif>
</td>
</cfoutput></tr>
</cfoutput>
Copy link to clipboard
Copied
You're setting TD width to a hard value, but your table is set to 95%. If the number of TDs x 100 is greater than 95% width of area table can take, that will push things vertically. I think. Just a guess.
V/r,
^_^
Copy link to clipboard
Copied
Sadly enough, that doesn't appear to be the reason. I was even going going for
<CFSET cellnum = 1>
<CFSET cellmax = 3>
But that neither resolves the issue.