This is my code:
CSS
div {
height: 200px;
width: 600px;
border: 1px solid black;
}
ul {
height: 200px;
width: 600px;
border: 1px solid black;
}
p {
height: 200px;
width: 600px;
border: 1px solid black;
}
HTML
<div></div>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
<p></p>
I want to ask why the width and height are different from normal(paragraph and division) even if the width and height i set is the same?
Many browsers put internal padding on
ultags by default.You would need to override this:
CSS
Demo