Skip to main content
November 12, 2015
Question

cfoutput horizontal

  • November 12, 2015
  • 1 reply
  • 255 views

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>

    This topic has been closed for replies.

    1 reply

    WolfShade
    Legend
    November 12, 2015

    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,

    ^_^

    November 13, 2015

    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.