->
| Diablo III in Computer Gaming |
|
|
| Any Rik Mayall/Adrian Edmondson Fans? in The Media Room |
|
|
| Sony Online announces free-to-play shooter Bullet Run in NeoGamr News |
|
|
| The world's largest outdoor pool in Real World News |
|
|
| Why are you less active than you used to on the Neowin forums? in Poll Station |
|
Posted 05 February 2012 - 21:11
Posted 05 February 2012 - 21:27
pack34, on 05 February 2012 - 21:16, said:
Posted 05 February 2012 - 22:46
#1: parent is shown, child is what shows up on hover (works with any element, including lists)
<parent>
<child></child>
</parent>
child {
display:none; #hides it by default
}
parent:hover child {
display:block; #display child when parent is hovered
}
# you can add animation with css 3 transitions, google it
#2: expand a single element
<element></element>
element {
height:100px; # some arbitrary property
overflow:hidden; # possibly hide the overflow, which will allow you to put more content in the element than the collapsed form can fit, and will show up when the element expands on hover
}
element:hover {
height:200px; # a new value for that property when you hover on it
}
# you can add animation same as above.
Posted 05 February 2012 - 23:31
primexx, on 05 February 2012 - 22:46, said:
#1: parent is shown, child is what shows up on hover (works with any element, including lists)
<parent>
<child></child>
</parent>
child {
display:none; #hides it by default
}
parent:hover child {
display:block; #display child when parent is hovered
}
# you can add animation with css 3 transitions, google it
#2: expand a single element
<element></element>
element {
height:100px; # some arbitrary property
overflow:hidden; # possibly hide the overflow, which will allow you to put more content in the element than the collapsed form can fit, and will show up when the element expands on hover
}
element:hover {
height:200px; # a new value for that property when you hover on it
}
# you can add animation same as above.
The Pinball Arcade - Needs Your Help To Get "Twilight Zone"!in Gamers' HangoutStarted by jrolson85, 20 May 2012 - 23:27 |
|
|
|
Need Help! Easily worried and stressed; I feel sickin General DiscussionStarted by thatguyandrew1992, Today, 07:16 |
|
|
|
Help me built £250-£300 Home HTPC (US$400 - $500 ; Approx.)in Hardware HangoutStarted by uhangao, Today, 21:28 |
|
|
|
iPhone 4 help cant delete contactsin iPhone/iOSStarted by Largey, Yesterday, 20:15 |
|
|
|
Button text niggle - black on black - help please!in WindowBlinds AreaStarted by robsamui, Yesterday, 07:18 |
|
|