I found a solution...sort of...I made it static and used a blank row to set
the size of the cells with pixel gifs.  Now if I could just get the last
cell to cooperate and stay static when I expand the browser (yes...they are
set with values and not percents), I would be good :-D

The basic set up of this though is

<cfoutput query="...">
        ..codesnippet repeated 5 times...
        <cfif recordcount gte 6>
                ...code snippet repeated 5 times...
        </cfif>
</cfoutput>

Here's the code:

http://pastebin.com/fkMVND7G

Eric

-----Original Message-----
From: ColdFusion Developer [mailto:cfdev2...@gmail.com] 
Sent: Thursday, April 08, 2010 5:42 AM
To: cf-talk
Subject: Re: annoying table issue...


Based on the code snippets you provided, it will add the 1 pixel TD.

Do you have conditional logic around the last TD?

Can you paste the complete code snippet so it can be reviewed?
My initial thought is the conditional logic is not set up right.



On Wed, Apr 7, 2010 at 5:13 PM, Eric Roberts <w...@witchnet.org> wrote:

>
> I am having a browser rendering issue.  I have a dynamic table.  It is
> displaying radio buttons for a job assessment.  The assessment can have up
> to 10 responses, so the number of radio buttons is dynamic.  I have it set
> with 5 columns (a second row will show up if there are 6 or more
> responses).
> If there are less than 5 (from 6-9 responses) it puts radio buttons in the
> appropriate cells and then I use a spacer gif for the "empty cells", so,
> for
> instance, if there are 2 responses, you have:  button button blank blank
> blank.  The cells have borders (using images rather than the table
border).
> Here's the code (it repeats the response cells if there are more than 5
> obviously.)
>
>
>
> <td align="center" valign="middle" #cell_width# #cellstyle#>
>
> <cfif get_answers.recordcount gte 1>
>
> <A href="##" id="answer_detail_popup"
>
>
>
onMouseOver="document.getElementById('answer_detail_popup').style.cursor='de
> fault';stm(Text[1],Style[1])"
>
> onMouseOut="htm()"
>
> tabindex="-1">
>
>      <cfinput type="radio"
>
> name="assess_answer#GetAssess.CurrentRow#"
>
> id="assess_answer#GetAssess.CurrentRow#"
>
> checked="no"
>
> value="#get_answers.answer_id[1]#"
>
> required="no"
>
> passThrough="title='#get_answers.answer_label[1]#'">
>
> </a>
>
>      <cfelse>
>
>            <img src="img/pixel.gif" #cell_width# height="30" border="0">
>
>      </cfif>
>
> </td>
>
> <td width="1" class="formborder"><img src="img/pixel.gif" width="1"
> height="30" border="0"></td>
>
>
>
>
>
> The href is for an ajax call for a dynamic mouseover  label.  This snippet
> is repeated 5 times to generate the 5 cells across.cell width =
> 'width="20%"'
>
>
>
>
>
> This looks great in IE, but in FF, it adds a pixel to the last cell with a
> radio button to any rows that do not have 5 buttons.  Rows that are either
> blank or have 5 buttons render as expected.  I have tried adjusting the
> width of the spacer gif differently than the td width, but that didn't
> help.
> I have been banging my head over this all day.  Help!!!
>
>
>
> Any ideas?
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332763
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to