Krewe Posted February 7, 2011 Share Posted February 7, 2011 Hey guys,How do i create a mouse over event?This is what I put in my .css: .nav li a{display:block; height:0px; line-height:0px; padding:14px; background-image:url('mainpage/navbar.png'); background-repeat:repeat-x; text-decoration:none; color:#FFFFFF; font-family:"Lucida Sans Typewriter"; onMouseOver:url('mainpage/navbar2.png'); onmouseout:url('mainpage/navbar.png');} thanks guys!You are always a lot of help.~krewe Link to comment Share on other sites More sharing options...
dsonesuk Posted February 7, 2011 Share Posted February 7, 2011 onmouseover/onmouseout are javascript events you just need to use :hover .nav li a{display:block; height:0px; line-height:0px; padding:14px; background-image:url('mainpage/navbar.png'); background-repeat:repeat-x; text-decoration:none; color:#FFFFFF; font-family:"Lucida Sans Typewriter";}.nav li a:hover {background-image:url('mainpage/navbar2.png');} Link to comment Share on other sites More sharing options...
Krewe Posted February 8, 2011 Author Share Posted February 8, 2011 ooh, thanks!I tried to be self powered on answering this. So I googled and it gave me that as Html/CSS :xThanks for all your help Dsone I really appreciate it.------Edit:It worked thanks again.~krewe Link to comment Share on other sites More sharing options...
Krewe Posted February 8, 2011 Author Share Posted February 8, 2011 -Deleted----Found out how on my own Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.