I have a div that is styled with the following CSS properties :
HTML
<div class="messageContainer"></div>
CSS
.messageContainer {
margin-left: 2px;
background-color: #F7F5F2;
width: 100%;
min-height: 50px;
border: solid 1px silver;
padding-left: 5px;
margin-top: 3px;
}
When placing this HTML code inside the div element :
Follow these steps in order:
<ol>
<li>
Create a button control
</li>
<li>
Assign it to the main user
</li>
<li>
Let me know what happened
</li>
</ol>
Here is how it appears on the page: (Take a look at the numbers)
https://i.sstatic.net/N5mTY.png
So my question is, why is this happening? Why are the numbers showing outside of the div element?
UPDATE
I added this to the CSS :
.messageContainer ol
{
list-style-position:inside;
margin-left:5px;
}
And it fixed the issue, but now this is the result :