The warning is, well, a warning. Your page is displayed correctly only because the browser is not too strict on the HTML rules, but that may change in the future. For that reason, you should try to keep your HTML compliant and take the warnings seriously. In this case, I would suggest to replace the <div>
with <li>
tags and style them to prevent the margins and bullets (I assume that's why you're using <div>
instead of <li>
in the first place).
To achieve what you want, apply this CSS style to your list:
.your-ul {
list-style: none;
}
.your-ul li {
position:relative;
margin-left: 0;
display: inline-block;
}
Your HTML/ASPX code would look like this:
<ul class="your-ul">
<li><asp:LinkButton ID="lbtnFirst" runat="server" CausesValidation="false" OnClick="lbtnFirst_Click">Ilk</asp:LinkButton></li>
<li><asp:LinkButton ID="lbtnPrevious" runat="server" CausesValidation="false" OnClick="lbtnPrevious_Click"> << </asp:LinkButton></li>
</ul>