cfoutput horizontal

New Here ,
Nov 12, 2015 Nov 12, 2015

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>

Views

160

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 12, 2015 Nov 12, 2015

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,

^_^

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 13, 2015 Nov 13, 2015

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines