troubleshooting Question

Issue with formatting of ASP Repeater

Avatar of carecorejen
carecorejen asked on
CSSHTMLASP.NET
1 Comment1 Solution256 ViewsLast Modified:
I've got a page with a repeater on the results page.  Everything looks great in IE.  But in Mozilla, the data that should be on the second row of the result set, appears next to the first row.  Not sure what's going on source code appears to generate the Table correctly.

Repeater:
<asp:Repeater ID="ResultsList" DataSourceID="srcVoters" runat="server">
    <ItemTemplate>
      <table class="pledgeText" border="0" cellpadding="0" cellspacing="0">
            <tr valign="top">
                <td width="188" align="left"><img class="featureImage" hspace="5" src="<%# getImage(DataBinder.Eval(Container.DataItem, "Photograph"))%>"  alt="<%#DataBinder.Eval(Container.DataItem, "Name")%>" /></td>
                <td align="left" width="262">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="pledgeHeader"><%#DataBinder.Eval(Container.DataItem, "Name")%></td>
                        </tr>
                        <tr valign="top">
                            <td class="pledgeText" align="left">
                            <%# Eval("City")%>, <%#DataBinder.Eval(Container.DataItem, "State")%></td>
                        </tr>
                        <tr valign="top">
                            <td class="pledgeText" align="left">
                            <br /></td>
                        </tr>
                        <tr valign="top">
                            <td class="pledgeText" align="left"><img src="images/headline_why-vote-healthcare.gif" /></td>
                        </tr>
                    <tr valign="top">
                        <td class="pledgeText" align="left"><%#DataBinder.Eval(Container.DataItem, "Comments")%>
                        <br /><br />
                        <asp:HyperLink ID="hypVideo" onclick="window.open(this.href, 'popupwindow2', 'scrollbars=yes,width=375,height=300'); return false;" Style="position: relative" Target="_blank"  runat="server" NavigateUrl='pledge-video.aspx'>View Video</asp:HyperLink>
                        <asp:Label ID="lblVideo" runat="server" Visible="false" Text='<%#Databinder.Eval(Container.DataItem,"Video") %>' />
                        <asp:Label ID="lblVoterID" runat="Server" Visible="false" Text='<%#Databinder.Eval(Container.DataItem,"VoterID") %>' /></td>
                    </tr>
                    </table>
                 </td>
             </tr>
             <tr><td colspan="2"><hr color="#53247f" width="448" /></td></tr>
       </table>
      </ItemTemplate>
  </asp:Repeater>

CSS Entries:

.pledgeText table
{
    font-size: 12px;
        font-family: arial,helvetica,sans-serif;
    color: #000000;
    float:left;
}
.pledgeText tr
{
    font-size: 12px;
      font-family: arial,helvetica,sans-serif;
    color: #000000;
}

.pledgeText
{
    font-size: 12px;
      font-family: arial,helvetica,sans-serif;
    color: #000000;
    float:left;
}
.pledgeHeader
    {
      font-family: arial, helvetica, sans-serif;
      font-size: 14px;
      color: #53247f;
      font-weight: normal;
    float:left;
}
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros