Difference between revisions of "Team:Michigan Software/Team"

Line 1: Line 1:
 
+
<!DOCTYPE html>
<html lang="en">
+
<html>
 
<head>
 
<head>
+
<style>
<style>
+
ul {
.carousel-inner .item img{
+
    list-style-type: none;
    width: 100%;
+
    margin: 0;
}
+
    padding: 0;
 +
    overflow: hidden;
 +
    background-color: #333;
 +
}
  
</style>
+
li {
+
    float: left;
  <title>Bootstrap Example</title>
+
}
  <meta charset="utf-8">
+
  <meta name="viewport" content="width=device-width, initial-scale=1">
+
  <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
+
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
+
  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
+
</head>
+
<body>
+
  
<br> <br>
+
li a, .dropbtn {
 +
    display: inline-block;
 +
    color: white;
 +
    text-align: center;
 +
    padding: 14px 16px;
 +
    text-decoration: none;
 +
}
  
<div class="container">
+
li a:hover, .dropdown:hover .dropbtn {
 +
    background-color: red;
 +
}
  
 +
li.dropdown {
 +
    display: inline-block;
 +
}
  
 +
.dropdown-content {
 +
    display: none;
 +
    position: absolute;
 +
    background-color: #f9f9f9;
 +
    min-width: 160px;
 +
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
 +
}
  
<div id="myCarousel" class="carousel slide" data-ride="carousel">
+
.dropdown-content a {
  <!-- Indicators -->
+
    color: black;
 +
    padding: 12px 16px;
 +
    text-decoration: none;
 +
    display: block;
 +
    text-align: left;
 +
}
  
 +
.dropdown-content a:hover {background-color: #f1f1f1}
  
  <!-- Wrapper for slides -->
+
.dropdown:hover .dropdown-content {
   <div class="carousel-inner" role="listbox">
+
    display: block;
    <div class="item active">
+
}
<img src="https://amitchellcreative.files.wordpress.com/2012/08/chelsea_portrait_bus.jpg">
+
</style>
<div>
+
</head>
        <h3>Josh Abramson</h3>
+
<body>
        <p>I'm Josh Abramson, one of the team's co-founders and the current president. Hailing from West Bloomfield, I've made a living studying Biology, Mathematics, and Chemical Physics at the University of Michigan. Before leading the software team, I was on the Michigan lab team for 4 years as a member and 1 year as an advisor. Outside of iGEM, I enjoy tree climbing, playing pranks on my professors, and computer games.</p>
+
 
       </div>
+
<ul>
 +
   <li><a class="active" href="#home">Home</a></li>
 +
  <li><a href="#news">News</a></li>
 +
  <li class="dropdown">
 +
    <a href="#" class="dropbtn">Dropdown</a>
 +
    <div class="dropdown-content">
 +
      <a href="#">Link 1</a>
 +
      <a href="#">Link 2</a>
 +
       <a href="#">Link 3</a>
 
     </div>
 
     </div>
 +
  </li>
 +
</ul>
  
 
+
<h3>Dropdown Menu inside a Navigation Bar</h3>
  </div>
+
<p>Hover over the "Dropdown" link to see the dropdown menu.</p>
 
+
  <!-- Left and right controls -->
+
  <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
+
    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
+
    <span class="sr-only">Previous</span>
+
  </a>
+
  <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
+
    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
+
    <span class="sr-only">Next</span>
+
  </a>
+
</div>
+
 
+
  
</div>
 
 
</body>
 
</body>
 
</html>
 
</html>

Revision as of 19:00, 13 July 2016

<!DOCTYPE html>

Dropdown Menu inside a Navigation Bar

Hover over the "Dropdown" link to see the dropdown menu.