Datalist rendering in IE7

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
 
G

Guest

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!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top