Witam. Mam problem z tzn. tooltipem. Otóż gdy atrybut css position jest równy relative całej chmurki(#events) to chmurka kończy się razem z divem czyli jest ucięta, a gdy ustawie position na fixed wtedy chmurka jest daleko od najechanego elementu. Nie mam pomysłu jak to rozwiązać.
Kody
* {
/* old-style reset here :) */
border: 0px;
padding: 0px;
}
td.date_has_event {
background-position: 162px 0px;
color: white;
}
td.date_has_event:hover {
background-position: 162px -81px;
}
td.padding {
background: url(../img/calpad.jpg);
}
td.today {
background-position: 81px 0px;
color: white;
}
td.today:hover {
background-position: 81px -81px;
}
.events {
position: relative; <--- chodzi o tą linie
z-index: 9999;
}
.events ul {
text-align: left;
position: absolute;
display: none;
z-index: 1000;
padding: 15px;
background: #E7ECF2;
color: white;
border: 1px solid white;
font-size: 12px;
width: 100px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
-border-radius: 3px;
list-style: none;
color: #444444;
-webkit-box-shadow: 0px 8px 8px #333;
}
.events li {
padding-bottom: 5px;
}
.events li span {
display: block;
font-size: 12px;
text-align: justify;
color: #555;
}
.events li span.title {
font-weight: bold;
color: #222;
}
<td class="date_has_event"><a href="archiwum/2010/04/15/">15
</a><div class="events"> Artykułów: 2
</div></td><td class="date_has_event"><a href="archiwum/2010/04/16/">16
</a><div class="events"> Artykułów: 1
Może macie jakiś pomyśł jak to rozwiązać?
Ten post edytował Mlodycompany 29.04.2010, 17:39:20