List view alignment

I have a list view inside of 2 divs .They are the same width, and the second div lines up to the center of the first, but the list view is ou

 <div style="margin-left:10px; margin-top:10px;  width:220px; background-color:lightseagreen; height:auto;">
               <div style="margin:auto; margin-top:10px; width:190px;  height:auto;">
            <asp:ListView ID="lvdogglogs" runat="server" OnItemDataBound="lvdogglogs_ItemDataBound" style="width:190px; " GroupItemCount="4" GroupPlaceholderID="gpid">
[the grid description]</div></div>

of bounds I lines up 50px to the right of the divs? What am I doing wrong?

Hi DieseIDave,

Thanks for your post.

Firstly, I recommend to check the structure of the elements in your webpage via
Developer Tools.

Secondly, you could also show us your complete code, then we will reproduce your problem and try our best to resolve it.

Best Regards,

Fei Han

Leave a Reply