Note that there are some explanatory texts on larger screens.

plurals
  1. POImage Hover on Twitter Bootstrap
    primarykey
    data
    text
    <p>my name is Enrique and I'm having a problem with the :hover property on Twitter Bootstrap.</p> <p>I made a rating system with 5 stars, but when a star is "hovered", the stars start to blink, a really mess</p> <p>When I use the same system without any script, it works fine, that's why I think the problem are on Bootstrap or Jquery.</p> <p>Here's my site beeing developed: <a href="http://apostilaz.pilha.inf.br/detalhaapostila" rel="nofollow">http://apostilaz.pilha.inf.br/detalhaapostila</a></p> <p>The stars are above the big green button writed (BAIXAR APOSTILA), when they are empty its hard to see, I know.</p> <p>Here is a jsfiddle with the same code without any JS and the code below:</p> <p><a href="http://jsfiddle.net/EnriqueSampaio/kb9a8/" rel="nofollow">http://jsfiddle.net/EnriqueSampaio/kb9a8/</a></p> <pre><code>CSS .avalia { width: 90px; height: 17px; margin: 0 0 20px 0; padding: 0; list-style: none; clear: both; position: relative; background: url(../img/estrelas.png) no-repeat 0 0; } .semestrela { background-position: 0 0; } .umaestrela { background-position: 0 -18px; } .duasestrelas { background-position: 0 -36px; } .tresestrelas { background-position: 0 -54px; } .quatroestrelas { background-position: 0 -72px; } .cincoestrelas { background-position: 0 -90px; } ul.avalia li { cursor: pointer; float: left; text-indent: -999em; } ul.avalia li a { position: absolute; left: 0; top: 0; width: 18px; height: 17px; text-decoration: none; z-index: 200; } ul.avalia li.uma a { left: 0; } ul.avalia li.duas a { left: 17px; } ul.avalia li.tres a { left: 34px; } ul.avalia li.quatro a { left: 51px; } ul.avalia li.cinco a { left: 68px; } ul.avalia li a:hover { z-index: 2; width: 90px; height: 17px; overflow: hidden; left: 0; background: url(../img/estrelas.png) no-repeat 0 0; transition:none !important; } ul.avalia li.uma a:hover { background-position: 0 -18px; } ul.avalia li.duas a:hover { background-position: 0 -36px; } ul.avalia li.tres a:hover { background-position: 0 -54px; } ul.avalia li.quatro a:hover { background-position: 0 -72px; } ul.avalia li.cinco a:hover { background-position: 0 -90px; } HTML &lt;ul class="avalia semestrela"&gt; &lt;li class="uma"&gt;&lt;a href="#fakelink" title="1 Estrela"&gt;1&lt;/a&gt;&lt;/li&gt; &lt;li class="duas"&gt;&lt;a href="#fakelink" title="2 Estrelas"&gt;2&lt;/a&gt;&lt;/li&gt; &lt;li class="tres"&gt;&lt;a href="#fakelink" title="3 Estrelas"&gt;3&lt;/a&gt;&lt;/li&gt; &lt;li class="quatro"&gt;&lt;a href="#fakelink" title="4 Estrelas"&gt;4&lt;/a&gt;&lt;/li&gt; &lt;li class="cinco"&gt;&lt;a href="#fakelink" title="5 Estrelas"&gt;5&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; </code></pre> <p>Thank you!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload