0

On a SharePoint page, I have implemented a table and within the table have put buttons, which are just images. They work great and the links are working too. However, I would like to incorporate a hover element where the button changes color. I'm pretty sure this is possible using Javascript and CSS, however, I'm not sure exactly where to implement the code snippets. Thanks!

1

You can do this with CSS but if you are using images then I think you will need a separate image for the hover.

img.button {background-image: 'normalimage.png'}
img.button:hover {background-image: 'hoverimage.png'}

You can also do the same thing with background colours.

  • Thanks Dave! That looks good, where do I put the code snippet? – Helmut Fleps Sep 25 '13 at 17:42
  • You can add it to the page itself or within a CEWP on a page, or if your solution is using a custom CSS file then add it there. – Dave Paylor Sep 25 '13 at 20:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.