• 0

Div Collapsing


Question

hey, when i use this code in my site, the div container with the class applied to it collapses and the content is displayed on top, running outside the divs boundaries

<div class="iKCContent">
	<asp:Repeater ID="DogRepeater" runat="server" DataSourceID="SqlDataSource">
		<ItemTemplate>
			<div id="MyDogContainer" style="height:auto">
				<div style="float:left;">
					<asp:Image ID="DogImage" runat="server" ImageUrl='<%# Bind("DogImage")%>' Height="120px" Width="80px" />
				</div>
				<div style="float:left;">
					<asp:Label id="NameLabel" runat="server" Text='<%# Bind("Name") %>'></asp:Label><br />
					<asp:Label ID="RegisteredNameLabel" runat="server" Text='<%# Bind("RegisteredName") %>'></asp:Label><br />
					<asp:Label ID="Label1" runat="server" Text='<%# Bind("Gender") %>'></asp:Label>
				</div>
			</div>
		</ItemTemplate>
	</asp:Repeater>
</div>

Edited by Joel
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.