Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to display text over image
    text
    copied!<p>I want to display text over image. Whenever someone hover mouse over the image.</p> <p>My Div block is:</p> <pre><code>&lt;div class="MainDIV"&gt; &lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;div class="popular_stores" align="center"&gt; &lt;span style="font-size: 12pt;"&gt;Browse our list of stores that we have coupons, coupon codes, and promo codes for. &lt;/span&gt; &lt;br&gt; &lt;ul&gt; &lt;li&gt; &lt;img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcR31R-rZO7MBzgGMrZlpa7C0-tx3CmzVz6pha7kt8Fw6PjpsMGENg" style="width: 100px;height: 50px;" &gt; &lt;/li&gt; &lt;li&gt; &lt;img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcR31R-rZO7MBzgGMrZlpa7C0-tx3CmzVz6pha7kt8Fw6PjpsMGENg" style="width: 100px;height: 50px;" &gt; &lt;/li&gt; &lt;li&gt; &lt;img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcR31R-rZO7MBzgGMrZlpa7C0-tx3CmzVz6pha7kt8Fw6PjpsMGENg" style="width: 100px;height: 50px;" &gt; &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt;&lt;/div&gt; </code></pre> <p>And rest of the CSS and JavaScript Function is:</p> <pre><code>&lt;script src="http://code.jquery.com/jquery-1.9.1.min.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; $('.drama').mouseover(function(){ alert("dss"); var tt = $(this).parent().find('.toolTip'); tt.html($(this).attr('title')); tt.show(); }); $('.drama').mouseout(function(){ var tt = $(this).parent().find('.toolTip'); tt.hide(); }); &lt;/script&gt; &lt;style type="text/css"&gt; body { text-align: center; } .MainDIV{ padding:0; width:700px; display: inline-block; background-color:white; } .MainDIV ul { list-style-type: none; } .MainDIV ul li { display: inline-block; padding : 1em; } .MainDIV ul li img { padding: .2em ; border-radius: 10px; -moz-border-radius: 10px; background-color: #F5F5E3; } ul li div{display:none; background:white; opacity:.5; position:absolute;} </code></pre> <p>What i am trying to do is shown here.please take a look :<a href="http://laurencekim.com/" rel="nofollow">click here</a></p> <p>Similar to this page i want to display text over the image whenever someone hover mouse on the image. Can someone please help me out...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload