top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to display text on top of the image ?

0 votes
699 views
How to display text on top of the image ?
posted Jul 10, 2014 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

In Css using Position relative and absolute you can put the text on top of the image.

For Example:

.container {
  position:relative;
}

.text_on_top {
postion:absolute;
top:0px;
left:10px;
}


<div class="container"> 
   <img src="image.png" alt="image" />
    <p class="text_on_top">Text for Image on the top</p>
<div>

Refer More Details for about position relative vs absolute

answer Jul 10, 2014 by Gowri Sankar
Similar Questions
0 votes

I have an image called social-share-icon.gif.This image containing facebook,twitter and google+ icon.

In Css i need to use all icon as seperate.I don't have any idea how to use this.

Some one please help with example code.

...