Bei Hover haben meine Textlinks Unterstreichungen. Dies ist der Standard in Bootstrap.'Text-Dekoration: keine' funktioniert nicht im Bootstrap
Ich möchte dies beibehalten, es sei denn, der Link ist innerhalb eines bestimmten div.
Der Code, den ich versucht habe (und verschiedene Varianten), funktioniert nicht.
Die HTML:
<div class="wall-entry span5">
<a href="">
<img src="http://www.placehold.it/290x163" />
<div class="wall-address">
<p>Burgundy Street</p>
<p>New Orleans, LA</p>
<p>USA</p>
</div>
</a>
</div>
Meine CSS:
.wall-entry {
background-color: @black;
position: relative;
img {
opacity:0.4;
filter:alpha(opacity=40); /* For IE8 and earlier */
}
div {
position: absolute;
left: 10px;
bottom: 10px;
p {
line-height: 18px;
margin: 0;
font-family: Neuzit Heavy;
font-size: 18px;
color: white;
text-decoration: none;
}
}
}
div.wall-entry:hover img {
opacity:1;
filter:alpha(opacity=100); /* For IE8 and earlier */
}
a div.wall-entry {text-decoration: none;}
Eine kurze Anmerkung: Ich habe a {text-decoration: none;}
getestet, dies funktioniert. Ich möchte jedoch nicht alles ändern. Nur die Links in diesem speziellen Fall.
In Verbindung stehend: http://stackoverflow.com/q/11828829/923560 – Abdull