Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Macromedia Dreamweaver > How to make a b...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 93824 of 98347
Post > Topic >>

How to make a button stay down when I click on it in

by "Webethics" <webforumsuser@[EMAIL PROTECTED] > Aug 7, 2008 at 03:20 PM

So I have created a horizontal navigation bar, I use the CSS Sprites/Pixy 
method to get the hover working with the same image as the link/in active
stage 
of the buttons.

 Now how do I make the button stay down when someone click on them?
 These are the codes for the nav bar.


 #nav{
 	width: 780px;
 	list-style: none;
 	margin-top: 0;
 	margin-right: auto;
 	margin-bottom: 0;
 	margin-left: auto;
 	padding: 0;
 	height: 40px;
 	}
  
 #nav li{
 	font-family: Arial, Helvetica, sans-serif;
 	font-size: 14px;
 	font-weight: bold;
 	float: left;
 	padding: 0;
  }
  
 #nav a{
 	width: 125px;
 	display: block;
 	color: #000000;
 	text-decoration: none;
 	text-align: center;
 	background-image: url(ZITTO_IMAGES/button_set1a.jpg);
 	background-repeat: no-repeat;
 	background-position: center 2px;
 	padding-top: 14px;
 	padding-bottom: 10px;
 	background-color: #000000;
 	}
 	
 #link2,#link3,#link4,#link5,#link5,#link6 { margin-left: 6px;}


 #nav a:hover{
 	background-image: url(ZITTO_IMAGES/button_set1a.jpg);
 	background-repeat: no-repeat;
 	background-position: center -36px;
 	color: #FFFFFF;
 	width: 125px;
 	padding-top: 14px;
 	padding-bottom: 10px;
 	background-color: #000000;
 }

 Everything works so far, the hover works when you roll the mouse but when
you 
click the button goes right back.
 How can I make it stay down and then go back to normal when you click on 
another link/button?

 Thanks very much.

 Patrick
 




 8 Posts in Topic:
How to make a button stay down when I click on it in
"Webethics" <  2008-08-07 15:20:28 
Re: How to make a button stay down when I click on it in CSS na
"Murray *ACE*"   2008-08-07 11:49:49 
Re: How to make a button stay down when I click on it in
"Webethics" <  2008-08-07 17:58:43 
Re: How to make a button stay down when I click on it in CSS na
"Murray *ACE*"   2008-08-07 14:14:54 
Re: How to make a button stay down when I click on it in
"Webethics" <  2008-08-08 06:13:57 
Re: How to make a button stay down when I click on it in CSS na
"Murray *ACE*"   2008-08-08 07:25:31 
Re: How to make a button stay down when I click on it in CSS
E Michael Brandt <mich  2008-08-07 11:58:10 
Re: How to make a button stay down when I click on it in CSS
E Michael Brandt <mich  2008-08-07 12:01:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 1:15:16 CST 2008.