Datalist rendering in IE7

  • Thread starter Thread starter L-E Eriksson
  • Start date Start date
L

L-E Eriksson

Hello!
I have a web form with a datalist control. The datalist shows articles from
a db. The page looks nice in IE6 and FF, but in IE7 the line breaks are
messed up, so for each article in the datalist, only the first line is
visible.

This is the code in short:

<form id="form1" runat="server">
<asp:DataList ID="DataList1" runat="server" Width="612px"
Height="84px">
<ItemTemplate >
<asp:Label ID="PAGECONTENTLabel" runat="server"
Text='<%# Eval("PAGECONTENT") %>' Width="100%"></asp:Label>
</ItemTemplate>
<SeparatorTemplate>
<hr />
</SeparatorTemplate>
<ItemStyle />
</asp:DataList>
</form>

I guess there som css needed?


Regards

L-E Eriksson
 
Convert the line breaks to <BR> tags and see if that helps. IE7 does not
compensate for non-standard stuff the way earlier versions do.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Back
Top