Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfoutput horizontal

Guest
Nov 12, 2015 Nov 12, 2015

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>

224
Translate
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

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,

^_^

Translate
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
Guest
Nov 13, 2015 Nov 13, 2015
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.

Translate
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
Resources