1

I can't figure out why my CSS won't work with my submit button. Am I missing something?

.searchREG {
   width: 184px; 
   height:175px; 
   float:left; 
   background: url('/admin/img/search.png') no-repeat;
}

 .searchREG:hover {
   background-position: 0 -175px no-repeat; 
   cursor:pointer
 }


 <input class="searchREG" type="submit" value="submit">
1
  • What is not working? Can it be shown in a jsfiddle (jsfiddle.net)? It will be much easier to help you Commented Apr 26, 2012 at 21:03

1 Answer 1

2

You should see if there is not a problem with the url of your image. (what exactly does not work?)

Try remove the first slash in your image url. (encountered it once)

background: url('admin/img/search.png') no-repeat;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.