I having a datalist which contains very small item, I did not set the height of the datalist but the problem is there is like a minimum height for datalist bacause even i jut put a dot (.) in the itemTemplate the height still the same.
below is my codes in aspx:
<asp:DataList ID="dl" runat="server" CellPadding="1" CellSpacing="0" RepeatDirection="Horizontal"
ItemStyle-BorderStyle="Solid" ItemStyle-BorderWidth="1" ItemStyle-VerticalAlign="bottom"> <ItemTemplate> .
.
</ItemTemplate> </asp:DataList>
I purposely put border so the you guys can see the actual output, below is the output:
. | . | . | . | . | . | . | . | . | . | . | . |
. | . | . | . | . | . | . | . | . | . | . | . |
. | . | . | . | . | . | . | . | . | . | . | . |
. | . | . | . | . | . | . | . | . | . | . | . |
. | . | . | . | . | . | . | . | . | . | . | . |
. | . | . | . | . | . | . | . | . | . | . | . |
. | . | . | . | . | . | . | . | . | . | . | . |
. | . | . | . | . | . | . | . | . | . | . | . |
What can i do so that i will get the datalist with no unnecessary space in between?