Solved

Converting TEXT to an Image in HTML

Posted on 2014-12-12
1
79 Views
Last Modified: 2014-12-12
Without using javascript, how can I convert  a Text string to an image by mouse hovering?
In other words, I place mouse over the Text and instantly the image appears. And when I move the mouse off the image the text reappears.
0
Comment
Question by:metro156
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40496693
http://jsfiddle.net/8d6m0b1k/1/

<div>Some text
    <img src="http://www.freeimageswallpapershd.com/wp-content/uploads/2014/12/xmas-5.jpg">
</div>

Open in new window


div {
    position:relative
}
img {
    position:absolute;
    opacity:0;
    width:100px;
    height:100px;
    left:0;
    top:0
}
img:hover {
    opacity:1
}

Open in new window

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Change in PHP Behavior with Session Write Short Circuit (http://php.net/manual/en/book.session.php#116217) (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question