I have a div with the class "flag" with a picture inside of it. The div is sitting nested inside of another div named "top". "top" contains a number of other divs inside of it. For some reason the "flag" CSS class listed below isn't being applied to the "flag" div with the same class. Why?
.flag img {
width: 1px;
height: 1px;
margin: auto;
}
<div name="top">
<div class="blog-title">
<a href="https://prop11-2.tumblr.com/"> Vote Yes On Proposition 11.2 </a>
</div>
<div class="flag">
<img src="https://ak3.picdn.net/shutterstock/videos/2565830/thumb/1.jpg"> </img>
</div>
<div id="description" class="container">
<h1> Proposition 11.2 is an amendment to the already in place law that allows the humane execution of inmates via what our scientists are calling "Orbital Execution".
</h1>
</div>
</div>
This should result in the picture in the above div being 1px by 1px, but for some reason it isn't working. For the life of me, I can't figure our why. What punctuation mark did I miss?
edit: for some reason, I made a new CSS class titled "flag2" and that seemed to do the trick. I still have no idea what was wrong, all I did was copy and paste the "flag" class, rename it to "flag2" and changed the target of the div class.