Reputation: 16629
I have a list inside a div. The div is styled as
<div id="container">
Random text
<ul>
<li>Text</li>
</ul>
<div>
#container{
//styling information
}
However, the list is not following the style of the container. How can I fix this?
Upvotes: 0
Views: 330
Reputation: 1073
Try
#container ul{
//styling information
}
to style the list and
#container li{
//styling information
}
to style the items
Upvotes: 2