Hallo,
ich habe ein Kalender, bei dem einzelne Tage als Link dargestellt werden. Klappt auch.
Das Problem ist die verticale Ausrichtung des Links in der Tabell (Zelle).
Wenn ich nur die Zahl als Link setze geht es, nur wenn ich die ganze Zelle als Link setze nicht, also wenn ich display:block; setze bei a.infobox
Weiß vielleicht jemand, wie ich die Zahl auf die gleiche Höhe bekomme wie dort, wo kein Link ist?
Hier einmal der Quelltext:
Hier einmal hochgeladen, damit ihr sehen könnt wie es aussieht. http://ib-tenbieg.de/eintrachtforum/neu/kallender2.php
Besten Dank schonmal,
Gruß, Basti
ich habe ein Kalender, bei dem einzelne Tage als Link dargestellt werden. Klappt auch.
Das Problem ist die verticale Ausrichtung des Links in der Tabell (Zelle).
Wenn ich nur die Zahl als Link setze geht es, nur wenn ich die ganze Zelle als Link setze nicht, also wenn ich display:block; setze bei a.infobox
Weiß vielleicht jemand, wie ich die Zahl auf die gleiche Höhe bekomme wie dort, wo kein Link ist?
Hier einmal der Quelltext:
PHP:
<html>
<head>
<style type="text/css">
a.infobox { border-bottom: 0px dashed #c30; text-decoration:none; color:#FFFFFF; display:block; height:25px; }
a.infobox:hover { color:#FFFFFF; }
a.infobox span { visibility:hidden; position:absolute; margin-left:-90px;
margin-top:-190px; padding:1em; text-decoration:none; }
a.infobox:hover span, a.infobox:focus span, a.infobox:active span {
visibility:visible;
border:0px solid #c30; color:blue;
background-image:url(hinter.png);
}
a.infobox span { text-align:justify; width:179px; height:170px; }
.date
{
width:25px; height:30px; border:solid 1px #000000;
text-align:center;
background:url(calendar_day_bg.gif);
font-family: 'Arial';
font-size: 12px;
font-weight:bold;
}
.date1
{
width:25px; height:30px; border:solid 1px #000000;
text-align:center;
color:#999999;
font-family: 'Arial';
font-size: 12px;
}
.head
{
border:solid 1px #cccccc;
background-color:#cccccc;
text-align:center;
font-family: 'Arial';
font-size: 12px;
font-weight:bold;
}
.link
{
width:25px; height:30px; border:solid 1px #000000;
text-align:center;
background:url(calendar_raceday_bg.gif);
font-family: 'Arial';
font-size: 12px;
font-weight:bold;
}
</style>
<!--[if IE 5]><style type="text/css">
a.infobox span { display:none; }
a.infobox:hover span { display:block; }
</style><![endif]-->
</head>
<body>
<br><br><br>
<table cellpadding="1" cellspacing="1">
<tr><td colspan="7" class="head">August</td></tr>
<tr>
<td class="date1">25</td>
<td class="date1">26</td>
<td class="date1">27</td>
<td class="date1">28</td>
<td class="date1">29</td>
<td class="date1">30</td>
<td class="date1">31</td>
</tr>
<tr>
<td class="date">1</td>
<td class="date">2</td>
<td class="date">3</td>
<td class="date">4</td>
<td class="link"><a class="infobox">5<span>
<center>
<table border="0"><tr>
<?php echo "<tr><td colspan='3' style='font-size:10px; font-family:Verdana; color:#000000;'><center><b>1. Spieltag<br><br><b>$date0101</b></td></tr>"; ?>
<tr><td style="text-align:right; font-size:10px; font-family:Verdana; color:#000000;">
<?php echo "$spiel0101"; ?></td><td style="font-size:10px; font-family:Verdana; color:#000000;"><center> : </td><td style="font-size:12px; font-family:Verdana; color:#000000;">
<?php echo "$spiel0102"; ?></td></tr></table></center>
</span></a></td>
<td class="date">6</td>
<td class="date">7</td>
</tr>
<tr>
<td class="date">8</td>
<td class="date">9</td>
<td class="date">10</td>
<td class="date">11</td>
<td class="date">12</td>
<td class="date">13</td>
<td class="date">14</td>
</tr>
<tr>
<td class="date">15</td>
<td class="date">16</td>
<td class="date">17</td>
<td class="date">18</td>
<td class="date">19</td>
<td class="date">20</td>
<td class="date">21</td>
</tr>
<tr>
<td class="date">22</td>
<td class="date">23</td>
<td class="date">24</td>
<td class="date">25</td>
<td class="date">26</td>
<td class="date">27</td>
<td class="date">28</td>
</tr>
<tr>
<td class="date">29</td>
<td class="date">30</td>
<td class="date">31</td>
<td class="date1">1</td>
<td class="date1">2</td>
<td class="date1">3</td>
<td class="date1">4</td>
</tr>
</table>
</body>
</html>
Hier einmal hochgeladen, damit ihr sehen könnt wie es aussieht. http://ib-tenbieg.de/eintrachtforum/neu/kallender2.php
Besten Dank schonmal,
Gruß, Basti