Skip to content

Instantly share code, notes, and snippets.

@alexmoleiro
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save alexmoleiro/e70577ebd55afa28979c to your computer and use it in GitHub Desktop.

Select an option

Save alexmoleiro/e70577ebd55afa28979c to your computer and use it in GitHub Desktop.
Elegir radio button (sin radio button) y con un div
<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