Bootstrap Lab3 2
Bootstrap Lab3 2
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
15. Create Dropdown Links Menu. Add new list item <li> tag for page 4 link, add the "dropdown" class to <li> tag.
Then add a <span> tag with "caret" class to add the dropdown icon
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Page 4
<span class="caret"></span></a>
</li>
• The dropdown class indicates a dropdown menu.
• To open the dropdown menu, use a button or a link with a class of dropdown-toggle and the data-
toggle="dropdown" attribute.
• The caret class creates a caret arrow icon (), which indicates that the button is a dropdown.
16. Add a nested list under page 4. To create toggleable menu that allows the user to choose one value from a
predefined list. Add the “dropdown-menu class” to a <ul> element to actually build the dropdown menu.
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Page 4
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">Page 4-1</a></li>
<li><a href="#">Page 4-2</a></li>
<li><a href="#">Page 4-3</a></li>
</ul>
</li>
17. Create a row with two equal columns using (<div class="row">) and (<div class="col-*-*">. To organize the
education content:
<div class="row">
<div class="col-md-6">
<h3>07/2013 </h3>
……..
</div>
<div class="col-md-6">
<h3>08/2016 </h3>
………
</div>
</div>
18. Create a row with two equal columns using (<div class="row">) and (<div class="col-*-*">. To organize the
interest content.
<div class="row">
<ol>
<div class="col-sm-3 col-md-4">
<li>Technology </li>
<li>Sciences </li>
<li>Literature</li>
</div>
<div class="col-sm-6 col-md-4">
<li>FilmCamping</li>
<li>Hiking</li>
</div>
<div class="col-sm-3 col-md-4">
<li>Tennis</li>
<li>Woodworking</li>
</div>
</ol>
</div>
19. Create a row with two columns using (<div class="row">) and (<div class="col-*-*">) and (<div class="col-
md-*5 and offset-*". To organize the course taken content and quote content:
<div class="row">
<div class="col-md-6 col1">
<table> …. </table>
</div>
<div class="col-md-5 col-md-offset-1">
<blockquote> …… </blockquote>
</div>
</div>
Move columns to the right using col-md-offset-* classes. These classes increase the left margin of a column by *
columns