Good,
First you have to be careful with the closing of tags.
One of the ways you have to align elements is by using the float
<div id="bola"><h4 style="text-align: left; display:block">Bibliotecas</h4></div>
<div id="bola2">
<img src="http://culturalis.pt/wp-content/uploads/2015/06/circun.png" alt="curva" style="float:left; display:inline-block"/>
<hr style="height:3px;width:100px;border-width:0;color:#D29E1D;background-color:#D29E1D;float:left"></hr>
</div>
Here I just closed the tags that weren’t closed
I added this CSS
#bola{
float: left;
}
#bola2 {
float: left;
margin-top: 20px;
}
Here’s the FIDDLE where you can test
P.S. I used the margin-top
to focus more or less on #bola2
in relation to #bola
ALTERNATIVE
If you do not want to use a file CSS to save styles, you can always add HTML
<div id="bola"style="float: left">
<h4 style="text-align: left; display:block">Bibliotecas</h4>
</div>
<div id="bola2" style="float: left;margin-top: 20px;">
<img src="http://culturalis.pt/wp-content/uploads/2015/06/circun.png" alt="curva" style="float:left; display:inline-block"/>
<hr style="height:3px;width:100px;border-width:0;color:#D29E1D;background-color:#D29E1D;float:left"></hr>
</div>
Here’s the FIDDLE of this case
The last example of answer to your previous question seems to solve this, no?
– bfavaretto
@Brunogilbellino See my answer. There is no need to use image to make this icon.
– MoisesGama
But what if he wants to put a different image there in the future? I think you should give a second code option. It would be useful for many in the future. @Moisesgama
– Florida
@Florida I edited and it’s done. See.
– MoisesGama