I have a large div with two smaller divs inside. The first div contains an image, while the second one contains text.
Currently, there is a border below the image in the first div.
#newsfeed_header {
padding: 10px 0px;
width: 98%;
position: relative;
}
#nf_image:after {
content: " ";
border-bottom: solid 1px #000000;
display: block;
}
#nf_text {
text-transform: uppercase;
font-size: 14px;
font-weight: bold;
font-family: Oswald;
}
<div id="newsfeed_header">
<div id="nf_image">
<img src="//dummyimage.com/35x35" />
</div>
<div id="nf_text">Read the latest</div>
<br/>
</div>
Is it possible to place the border next to the image instead of below it?
|<img>__________________|
|text |