Einzelnen Beitrag anzeigen

Benutzerbild von Meflin
Meflin

Registriert seit: 21. Aug 2003
4.856 Beiträge
 
#7

Re: CSS: :hover falsch eingesetzt?

  Alt 28. Apr 2007, 21:26
Code:
<style type="text/css"><!-- 

#test {
  width:100px;
  height:18px;
  background-color:green;
  position:relative;


#test:hover {
  width:200px;
  height:300px;


#test .inner {
  display: none;
}

#test .inner:hover {
  display: inline;
}

--></style>


...

<div id="test">
Text<span class="inner">Text</span>
</div>
  Mit Zitat antworten Zitat