Posted by: prajapatinilesh | December 12, 2007

How to Make an Image Clickable

Most developers are familiar with this method which involves encapsulating an image with an anchor tag:

<a href=’index.html’ title=’Home Page’><img src=’logo.jpg’ alt=’an image’></a>

or

But we can used like following way……

<style type=’text/css’>
a.logo{
display:block;
height:100px;
width:200px;
background-image:url(‘logo.jpg’);
}
</style>

<a href=’index.html’ title=’Home Page’ class=’logo’></a>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: