HTML CSS examples for CSS Form:input radio button
Radio Button with images formatting
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> html, body { width: 100%; } .row {<!--from ww w . j a v a 2 s . c om--> text-align: center; width: 100%; display: inline-block; white-space: nowrap; } .cell { padding: 10px; display: inline-block; text-align: center; } img { border: 2px solid black; } </style> </head> <body> <div class="row"> <div class="cell"> <img src="https://www.java2s.com/style/demo/Safari.png"> <br> <input type="radio" name="bead" value="grey"> </div> <div class="cell"> <img src="https://www.java2s.com/style/demo/Opera.png"> <br> <input type="radio" name="bead" value="ivory"> </div> <div class="cell"> <img src="https://www.java2s.com/style/demo/Firefox.png"> <br> <input type="radio" name="bead" value="mattsmoke"> </div> </div> <br> <br> <div class="row"> <div class="cell"> <img src="https://www.java2s.com/style/demo/Opera.png"> <br> <input type="radio" name="bead" value="grey"> </div> <div class="cell"> <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> <br> <input type="radio" name="bead" value="grey"> </div> <div class="cell"> <img src="https://www.java2s.com/style/demo/Firefox.png"> <br> <input type="radio" name="bead" value="ivory"> </div> <div class="cell"> <img src="https://www.java2s.com/style/demo/Opera.png"> <br> <input type="radio" name="bead" value="mattsmoke"> </div> </div> <br> <br> <div class="row"> <div class="cell"> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> <br> <input type="radio" name="bead" value="grey"> </div> <div class="cell"> <img src="https://www.java2s.com/style/demo/Safari.png"> <br> <input type="radio" name="bead" value="ivory"> </div> <div class="cell"> <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> <br> <input type="radio" name="bead" value="mattsmoke"> </div> </div> <br> <br> </body> </html>