Hi.
So i am trying to left aligh with a listbox.I'm almost there but the problem is that i have a gap after the listbox ends.
Can you help me "fill the gap"
I would like the red color to start right after the listbox.
Yes it has 2 ContentPlaceHolders, just ignore that, i was testing something.Code:<html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>My Testing Master Page</title> <style media="all" type="text/css"> .mylistbox { background: lightblue; color: Black; font-size:medium; height: 166px; width: 189px; font-weight:normal; border: 0; float:left; } .myleftheight { background: lightblue; height: 0px; width: 189px; float:left; } .myleftspans { background: red; height: 230px; width: 189px; float:left; } </style> <asp:ContentPlaceHolder id="head" runat="server"> </asp:ContentPlaceHolder> </head> <body> <form id="form1" runat="server"> <table cellpadding="3" border="1"> <tr bgcolor="silver"> <td colspan="2"> <h1>My Testing Home Page</h1> </td> </tr> <tr> <td> <table class="myleftheight"> <tr class="myleftheight"> <asp:ListBox ID="ListBox1" runat="server" CssClass="mylistbox" Rows="9" AutoPostBack="true" > <asp:ListItem Text="Hello Hello-o-o" Value="http://localhost:3333" Enabled="true"/> <asp:ListItem Text="Jim individuacls" Value="http://localhost:3333" Enabled="true"/> <asp:ListItem Text="Is it true?" Value="http://localhost:3333" Enabled="true"/> <asp:ListItem Text="Broken <br /> <b> orak </b>" Value="http://localhost:3333" Enabled="true"/> <asp:ListItem Text="OKa" Value="11" Enabled="true"/> <asp:ListItem Text="Soooome" Value="http://localhost:3333" Enabled="true"/> <asp:ListItem Text="Yes it is (I" Value="http://localhost:3333" Enabled="true"/> </asp:ListBox> <td class="myleftspans" align="left" > </td> </tr> </table> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </td> <td> <asp:ContentPlaceHolder ID="ContentPlaceHolder2" runat="server"> </asp:ContentPlaceHolder> </td> </tr> <tr> <td colspan="2"> Copyright 2011 - My Company </td> </tr> </table> </form> </body> </html>
Picture in next post...





Reply With Quote