Advertisement
ndburrus

Responsively Style Radio Buttons @Alwaysonthemove

Aug 13th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. // Responsively Style Radio Buttons
  2. // @Alwaysonthemove
  3.  
  4.  
  5. <link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
  6. <style>
  7. h2 {
  8. font-family: Lobster, Monospace;
  9. }
  10.  
  11. .thick-green-border {
  12. border-color: green;
  13. border-width: 10px;
  14. border-style: solid;
  15. border-radius: 50%;
  16. }
  17. </style>
  18.  
  19. <div class="container-fluid">
  20. <div class="row">
  21. <div class="col-xs-8">
  22. <h2 class="text-primary text-center">CatPhotoApp</h2>
  23. </div>
  24. <div class="col-xs-4">
  25. <a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>
  26. </div>
  27. </div>
  28. <img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
  29. <div class="row">
  30. <div class="col-xs-4">
  31. <button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
  32. </div>
  33. <div class="col-xs-4">
  34. <button class="btn btn-block btn-info"><i class="fa fa-info-circle"></i> Info</button>
  35. </div>
  36. <div class="col-xs-4">
  37. <button class="btn btn-block btn-danger"><i class="fa fa-trash"></i> Delete</button>
  38. </div>
  39. </div>
  40. <p>Things cats <span class="text-danger">love:</span></p>
  41. <ul>
  42. <li>cat nip</li>
  43. <li>laser pointers</li>
  44. <li>lasagna</li>
  45. </ul>
  46. <p>Top 3 things cats hate:</p>
  47. <ol>
  48. <li>flea treatment</li>
  49. <li>thunder</li>
  50. <li>other cats</li>
  51. </ol>
  52.  
  53. <form action="/submit-cat-photo">
  54. <div class="row">
  55. // here should have <div class="col-xs-6">
  56.  
  57. //
  58.  
  59. <label><input type="radio" name="indoor-outdoor"> // remove the div, here --> <div class="col-xs-6"></div>Indoor</label> // need space before Indoor
  60. <label><input type="radio" name="indoor-outdoor"> // remove div here <div class="col-xs-6"></div>Outdoor</label> // need space before Outdoor
  61. </div>
  62. <label><input type="checkbox" name="personality"> Loving</label>
  63. <label><input type="checkbox" name="personality"> Lazy</label>
  64. <label><input type="checkbox" name="personality"> Crazy</label>
  65. <input type="text" placeholder="cat photo URL" required>
  66. <button type="submit">Submit</button>
  67. </form>
  68. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement