Ich möchte eine Info-Seite haben, bei der beim hovern Informationen angezeigt werden. Den passenden Code habe ich aus dem Netz und optisch für mich passend gemacht. Nur leider validiert das ganze nicht, weil div in span liegen. Wie bekomme ich das ganze genauso angezeigt und validiert?
ein Teil des html:
HTML-Code:
<a href="#">HD A<span>
<div class="textdrunter"><img src="a1.jpg" alt="" />
<p>FCI: HD A / normal<br />
BRD: A1<br />
SV: a, normal<br />
OFA: excellent<br />
BVA/KC: 0</p></div>
<div class="textdrunterrechts"><img src="a2.jpg" alt="" />
<p>FCI: HD A / normal<br />
BRD: A2<br />
SV: a, normal<br />
OFA: good<br />
BVA/KC: 1-3</p></div>
</span></a>
das dazugehörige css:
HTML-Code:
div#listequer {
float: left;
position: relative;
top: 10px;
left: 0px;
width: 400px;
height: 180px;
z-index: 2;
}
div#listequer a {
text-align: center;
padding: 3px 10px;
margin: 0 0 1px;
text-decoration: none;
color: black;
}
div#listequer a:hover {
color: #441111;
font-style : italic;
}
div#listequer a span {
display: none;
}
div#listequer a:hover span {
display: block;
position: absolute;
top: 45px;
width: 514px;
padding: 5px;
z-index: 100;
color: #000000;
background: #ecddb6;
font-style : italic;
text-align: center;
border: 1px dashed black;
}
.textdrunter {width: 250px; float: left;}
.textdrunterrechts {width: 250px; float: left; margin-left: 12px;}
und der Link zur Seite (noch nicht offiziell, ein Bild fehlt noch)
http://www.wolfshunde-herne.de/gesundheit/hd.php
Tanja