Pachman3000 Posted May 5, 2010 Share Posted May 5, 2010 Hey Guys, I'm using this CSS for my button rollovers. .lrollover a{ cursor:pointer; display:block; margin:auto; outline:0 solid transparent; text-indent:-9999px; } #l_button a { background:url("images/btn_login.png") no-repeat scroll left top transparent; height:32px; width:100px; } #l_button a:hover { background-position:left -32px; } I can't seem to get these rollovers to work for the submit buttons on my forms. I've been playing around with this <input type="submit" value="" class="lrollover" id="l_button"/> Any help would be awesome! Link to comment https://forums.phpfreaks.com/topic/200823-submit-button-rollovers/ Share on other sites More sharing options...
F1Fan Posted May 5, 2010 Share Posted May 5, 2010 Your classes are for <a> tags only, hence ".lrollover a". Link to comment https://forums.phpfreaks.com/topic/200823-submit-button-rollovers/#findComment-1053739 Share on other sites More sharing options...
Pachman3000 Posted May 5, 2010 Author Share Posted May 5, 2010 So simple! Thanks a lot!!! Link to comment https://forums.phpfreaks.com/topic/200823-submit-button-rollovers/#findComment-1053747 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.