I have 3 images: 1.png, 2.png, and 3.png.
Image 1.png is my "UP" state for my button. (the image for the button at normal with no activity)
Image 2.png is my "OVER" state for my button. (when my mouse is hovering over the image)
and
Image 3.png is my "ACTIVE" state. (when the mouse is clicking down on the image)
What is the HTML and CSS coding to do this? I am using <div> 's.
Thank you for your time.
cp
Because you have not supplied enough detail, I am assuming that you want to use the buttons for a menu system. In that case you could do the following
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
a {
background: red;
}
a:hover {
background: yellow;
}
a.active {
color: white;
background: black;
}
</style>
</head>
<body>
<a href="index.html" class="active">Home</a>
<a href="about.html">About Us</a>
<a href="products.html">Products</a>
<a href="contact.html">Contact Us</a>
</body>
</html>
You can place your images as the background value
Gramps
North America
Europe, Middle East and Africa
Asia Pacific