2

Can someone suggest to change "dotted text color on mouse over" in HTML. I am trying with below code but it didn't work. please help me.

This is my css-------------

.gvb-theme-cpCaroToolTipList {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 150px;
/*  color:#ffffff;*/
}

.gvb-theme-cpCaroToolTipList a {
    color: #003c72;
    line-height: 30px;
    padding: 5px 10px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gvb-theme-cpCaroToolTipList a:hover {
    color:#ffffff;
    text-align:center;
    background-color:#003C72;
    width:150px;
    padding:5px 10px;
}

This is my HTML code-------------

<div class="gvb-theme-carosuleTooltipMargin">
<div class="gvb-theme-cpCaroToolTipList">
<a href="#">
<img src="img/cp_star.png" class="gvb-theme-cpSetStarIcon" > <span>CONTO LA LIBRETTA LIBRETTA</span>
</a>
</div>
</div>
ohboy21
  • 4,259
  • 8
  • 38
  • 66
user3876771
  • 31
  • 1
  • 3

3 Answers3

0

Try to add this class so as to add dotted below the text on hover :

.gvb-theme-cpCaroToolTipList span:hover {
   border-bottom: 1px dotted #ffffff;
    text-decoration: none;
}

Change the color part as your needs.etc: 1px dotted #101010; http://jsfiddle.net/csdtesting/308wakq6/

Giannis Grivas
  • 3,374
  • 1
  • 18
  • 38
0

You need to add the two following:

.gvb-theme-cpCaroToolTipList:hover {
color:#ffffff;
}

.gvb-theme-cpCaroToolTipList:hover > span{
color:#ffffff;
}

see: http://jsfiddle.net/olivier_royo/s159y4m1/

Olivier Royo
  • 810
  • 10
  • 13
-1

you need to do this:

.gvb-theme-cpCaroToolTipList a:hover {
    color: #fff;
    line-height: 30px;
    padding: 5px 10px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align:center;
    background-color:#003C72;
    width:150px;
    padding:5px 10px;
}
yossi
  • 1
  • 4