I have a background image inside a DIV
CSS code is:
#block_header{
float:left;
background-image:url("Block_image_orange.png");
background-size: 300px 100px;
width:300px;
height:100px;
text-align:center;
font-size:18px;
color:#FFF;
}
HTML Code for the image div is:
<div id="block_header">
Block Text
</div><!--block_header id ends here-->
I want to add a text i.e "Block Text" exactly in the middle of the image but the text always shows at the top of the image. Is there a way i can display text in the middle of the image?
THanks!