Advertisement
ndburrus

Responsively Style Radio Buttons @faisalnuces

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