I'm having issues with my 2 child elements both being affected from styles applied to each other. I'm just trying to line up the one with the other better vertically.
I pretty much just went to move the img down a few pixels to line up with the
content. Any css thing I'm missing here?
<div id='fileIcon' class='fileIcon'>
<img src='images/Google-Chrome-Logo.svg' class="iconImg"></img>
<p id='fileName'>TestingFileName.pdf</p>
</div>
.fileIcon {
text-align: center;
overflow: auto;
}
.iconImg {
display: inline-block;
z-index: 1;
width: 22px;
height: 22px;
padding: 0px 5px;
}
#fileName {
display: inline-block;
z-index: 1;
color: #999;
font-size: 1.1em;
margin: 0;
}