2

I want my text on the button to be not highlighted when the mouse pointer is moved over it.

i tried applying the following which didnt work.

background-color:transparent;
opacity:1;

someone, please let me know the style to be applied. Let me know if you need additional information.

Piotr Perak
  • 10,718
  • 9
  • 49
  • 86
user2681868
  • 1,347
  • 3
  • 11
  • 8

3 Answers3

1

Try this (example):

Normal: (highlighted)

a{
    color: red;
    text-decoration: underline;
}

Hovered (not highlighted)

a:hover{
     color: black;
     text-decoration: none;
}
Pat Dobson
  • 3,249
  • 2
  • 19
  • 32
1

Here's a quick example of what you can do:

#ID {
    background-color:yellow;
}

#ID:hover{
    background-color:white;
}

This will cause the text in the html element with id ID to be highlighted UNLESS the mouse is hovering over the text.

Here's a jsFiddle with the sample code.

Blundering Philosopher
  • 6,245
  • 2
  • 43
  • 59
0

On you :hover code snippet set the color of the text to what you want it to appear as. For example:

#element a{
    color: black;
}

#element a:hover{
    color: black;
}

Remember that to change the colour of the text you have to use color, not background-color.

Nirvik Baruah
  • 1,643
  • 2
  • 19
  • 20