Why here the div is on the same line with the list ?
HTML
<ul id="lst">
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
<div id="id2">Kuku</div>
CSS
#lst li {
float: left;
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because every list item is floated left, and when you float something to the left the next item will end up on its right side.
Basically, the DIV ends up to the right of the list for the same reason the second LI ends up to the right of the first LI.
If you want to separate them, add this between the list and the DIV.