c# - ASP repeater overflowing from div -
i'm having issues asp repeater. reads in database , writes out repeating divs.. problem h4 spilling out on div, ideas on how solve this? when use <%eval problem. divs i've manually typed out fine , not overspilling
html
<asp:sqldatasource id="sqldatasource1" runat="server" connectionstring="<%$ connectionstrings:connectionstring %>" providername="<%$ connectionstrings:connectionstring.providername %>" selectcommand="select [headline], [story], [image] [news]"></asp:sqldatasource> <asp:repeater id="repeater1" runat="server" datasourceid="sqldatasource1"> <itemtemplate> <div id="news"> <div class="headline"> <div id="spacer"> <h5><%#eval("headline") %></h5> </div> </div> <div id="newsfoot"> <h4><%#eval("story") %></h4> <img src="<%#eval("image") %>" width ="290px" /> </div> </div> </itemtemplate> </asp:repeater>
the issue appears not code, rather css.
make sure h4 tag css has appropriate height value.
Comments
Post a Comment