3nested.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>My first Bootstrap website</title>
  5. <meta charset="utf-8"/>
  6. <meta http-equiv="X-UA-COMPATIBLE" content="IE=Edge"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <link rel="stylesheet" href="../css/bootstrap.css"/>
  9. <link rel="stylesheet" href="styles.css" />
  10. <!--[if lt IE 9]>
  11. <script src="../js/html5shiv.3-7-0.js"></script>
  12. <script src="../js/respond.1-4-2.min.js"></script>
  13. <![endif]-->
  14. </head>
  15. <body>
  16. <div class="container">
  17. <div class="col-md-12 text-center">
  18. <h1>My first Bootstrap blog</h1>
  19. </div>
  20. <hr />
  21. <div class="row">
  22. <div class="col-md-6 col1">
  23. <h3>Column 1</h3>
  24. <!--Nesting starts -->
  25. <div class="row">
  26. <div class="col-md-6 col3">
  27. <h3>Column 4</h3>
  28. </div>
  29. <div class="col-md-6 col4">
  30. <h3>Column 5</h3>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="col-md-6 col2">
  35. <h3>Column 2</h3>
  36. </div>
  37. </div>
  38. <div class="row">
  39. <div class="col-xs-6 col-xs-offset-3 col5">
  40. Hello Learnable
  41. </div>
  42. </div>
  43. </div>
  44. <!-- https://ajax.googleapis.com/ajax/libs/jquery/1.11.1.jquery.min.js -->
  45. <script src="../js/jquery-1.11.2.min.js"></script>
  46. <script src="../js/bootstrap.js"></script>
  47. </body>
  48. </html>