Last active
August 29, 2015 14:02
-
-
Save alexmoleiro/e70577ebd55afa28979c to your computer and use it in GitHub Desktop.
Elegir radio button (sin radio button) y con un div
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style> | |
| #panelCestaContienePacks { | |
| width: 95%; | |
| margin: 0 auto; | |
| overflow: hidden; | |
| } | |
| #panelCestaContienePacks input[type=radio]{ | |
| display: none; | |
| } | |
| #panelCestaContienePacks div{ | |
| height: 100px; | |
| width: 23.1%; | |
| float:left; | |
| border:#363636 4px solid; | |
| height: 100px; | |
| margin-right: 0.5%; | |
| display: block; | |
| cursor:pointer; | |
| } | |
| #panelCestaContienePacks input[type=radio]:checked + div{ | |
| border:4px #02a199 solid; | |
| } | |
| </style> | |
| <div id="panelCestaContienePacks"> | |
| <label for="a"> | |
| <input type="radio" name="idhosting" id="a"> | |
| <div> | |
| hola | |
| </div> | |
| </label> | |
| </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment