F
FTTDD78
Member
- Beiträge
- 15
- Punkte Reaktionen
- 0
Hallo.
Ich habe eine Seite gebaut, mit Tooltips.
Leider bekomme ich es nicht hin den Tooltip mittig unter den jeweiligen zahlen zu platzieren.
Mit einem Pfeil auf die Zahl wäre es noch schöner.
Die Tabellen elemente sollen die jetzige größe behalten.
Hat jemand einen Rat für mich?
Ich habe eine Seite gebaut, mit Tooltips.
Leider bekomme ich es nicht hin den Tooltip mittig unter den jeweiligen zahlen zu platzieren.
Mit einem Pfeil auf die Zahl wäre es noch schöner.
Die Tabellen elemente sollen die jetzige größe behalten.
Hat jemand einen Rat für mich?
CSS:
<style type="text/css">
.tg {border-collapse:collapse;border-spacing:0;}
.tg td{border-color:black;border-width:0px;font-family:Arial, sans-serif;font-size:14px;
overflow:hidden;padding:10px 5px;word-break:normal;}
.tg th{border-color:black;border-style:solid;font-family:Arial, sans-serif;font-size:14px;
font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}
.tg .tg-0lax{text-align:center;vertical-align:center;cursor: help}
.tg .tg-voll{position: static;border-style:solid;border-width:1px;text-align:center;vertical-align:center;cursor: help}
.tg .tg-links{border-left-style:solid;border-top-style:none;border-right-style:none;border-bottom-style:none;border-width:1px;text-align:center;vertical-align:center;cursor: help}
.tg .tg-links1{border-left-style:solid;border-top-style:none;border-right-style:none;border-bottom-style:none;border-width:1px;text-align:center;vertical-align:center}
.tg .tg-oben{border-left-style:none;border-top-style:solid;border-right-style:none;border-bottom-style:none;border-width:1px;text-align:center;vertical-align:center;font-family:Arial, sans-serif;font-size:18px;
font-weight:normal;cursor: help}
.tg .tg-none{padding:0px 1px;border-left-style:none;border-top-style:none;border-right-style:none;border-bottom-style:none;border-width:0px;text-align:center;vertical-align:center;font-family:Arial, sans-serif;font-size:18px;
font-weight:normal;cursor: help}
.tool {
display: inline-table;
color: #000000;
}
.tip {
display: None;
}
span.tool:hover span.tip {
display: Inline-Block;
display: Table-Caption;
position: absolute;
width: 120px;
z-index: 10000;
background-color: rgb(0, 0, 0);
box-shadow: 0px 0px 0px rgb(255, 255, 255);
padding: 4px;
margin: 15px;
border: solid 1px #c32e04;
border-radius: 0.5em;
font-family: Arial, Sans-Serif;
font-size: 14px;
color: #FFFFFF;
white-space: pre;
}
.span.tool::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: transparent transparent black transparent;
}
</style>
HTML:
<table class="tg" border="5" cellpadding="0" cellspacing="2" align="center">
<thead>
<tr>
<th class="tg-0lax" colspan="20"><p align="center"><b><u><font size="+3">Übersicht</font></u></b></p></th>
</tr>
</thead>
<tbody>
<tr>
<td class="tg-0lax" colspan="20"></td>
</tr>
<tr>
<td class="tg-voll" border-width=2 colspan="5"><span class="tool">56<span class="tip">Bereich 1</span></span></td>
<td class="tg-voll" colspan="5"><span class="tool">61<span class="tip">Bereich 2</span></span></td>
<td class="tg-voll" colspan="5"><span class="tool">66<span class="tip">Bereich 3</span></span></td>
<td class="tg-voll" colspan="5"><span class="tool">71<span class="tip">Bereich 4</span></span></td>
</tr>
<tr>
<td width="15" class="tg-links"><span class="tool">1<span class="tip">X=56 <br>E Palette</span></span></td>
<td></td>
<td width="15" class="tg-0lax"><span class="tool">3<span class="tip">X=58 <br>E Palette</span></span></td>
<td></td>
<td width="15" class="tg-0lax"><span class="tool">5<span class="tip">X=60 <br>E Palette</span></span></td>
<td width="15" class="tg-links"><span class="tool">1<span class="tip">X=61 <br>E Palette</span></span></td>
<td></td>
<td width="15" class="tg-0lax"><span class="tool">3<span class="tip">X=63 <br>E Palette</span></span></td>
<td></td>
<td width="15" class="tg-0lax"><span class="tool">5<span class="tip">X=65 <br>E Palette</span></span></td>
<td width="15" class="tg-links"><span class="tool">1<span class="tip">X=66 <br>E Palette</span></span></td>
<td></td>
<td width="15" class="tg-0lax"><span class="tool">3<span class="tip">X=68 <bR>E Palette</span></span></td>
<td></td>
<td width="15" class="tg-0lax"><span class="tool">5<span class="tip">X=70 <bR>E Palette</span></span></td>
<td width="15" class="tg-links"><span class="tool">1<span class="tip">X=71 <bR>E Palette</span></span></td>
<td></td>
<td width="15" class="tg-0lax"><span class="tool">3<span class="tip">X=73 <bR>E Palette</span></span></td>
<td></td>
<td width="15" class="tg-0lax"><span class="tool">5<span class="tip">X=75 <bR>E Palette</span></span></td>
</tr>
<tr>
<td class="tg-links1"></td>
<td width="15" class="tg-0lax"><span class="tool">2<span class="tip">X=57 <bR>I Palette</span></span></td>
<td></td>
<td width="15" class="tg-0lax"><span class="tool">4<span class="tip">X=59 <bR>I Palette</span></span></td>
<td></td>
<td class="tg-links1"></td>
<td width="15" class="tg-0lax"><span class="tool">2<span class="tip">X=62 <bR>I Palette</span></span></td>
<td></td>
<td width="15" class="tg-0lax"><span class="tool">4<span class="tip">X=64 <bR>I Palette</span></span></td>
<td></td>
<td class="tg-links1"></td>
<td width="15" class="tg-0lax"><span class="tool">2<span class="tip">X=67 <bR>I Palette</span></span></td>
<td class="tg-0lax"></td>
<td width="15" class="tg-0lax"><span class="tool">4<span class="tip">X=69 <bR>I Palette</span></span></td>
<td class="tg-0lax"></td>
<td class="tg-links1"></td>
<td width="15" class="tg-0lax"><span class="tool">2<span class="tip">X=72 <bR>I Palette</span></span></td>
<td class="tg-0lax"></td>
<td width="15" class="tg-0lax"><span class="tool">4<span class="tip">X=74 <bR>I Palette</span></span></td>
<td class="tg-0lax"></td>
</tr>
</tbody>
</table>