Difference between revisions of "Team:ASIJ Tokyo/CSS"

Line 1: Line 1:
 
<html>
 
<html>
 +
 +
<head>
 +
<meta name="viewport" content="width=device-width, initial-scale=1">
 +
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
 
<style>
 
<style>
  
Line 135: Line 139:
 
}
 
}
  
.navbar {
+
.navbar {
padding-top: 50px;
+
    overflow: hidden;
overflow: hidden;
+
    background-color: #333;
    background-color: #333;
+
    font-family: Arial, Helvetica, sans-serif;
    font-family: Arial, Helvetica, sans-serif;
+
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
+
    position: fixed;
position: fixed;
+
    width:100%;
    width:100%;
+
}
}
+
  
    .navbar a {
+
.navbar a {
float: left;
+
    float: left;
    font-size: 16px;
+
    font-size: 16px;
    color: white;
+
    color: white;
    text-align: left;
+
    text-align: left;
    padding: 0px;
+
    padding: 10px 50px;
    text-decoration: none;
+
    text-decoration: none;
}
+
}
  
    .dropdown {
+
.dropdown {
        float: left;
+
    float: left;
        overflow: hidden;
+
    overflow: hidden;
    }
+
}
  
    .dropdown .dropbtn {
+
.dropdown .dropbtn {
        font-size: 16px;     
+
    font-size: 16px;     
        border: none;
+
    border: none;
        outline: none;
+
    outline: none;
        color: white;
+
    color: white;
        padding: 10px 50px;
+
    padding: 10px 50px;
        background-color: inherit;
+
    background-color: inherit;
        font-family: inherit;
+
    font-family: inherit;
        margin: 0;
+
    margin: 0;
    }
+
}
  
    .navbar a:hover, .dropdown:hover .dropbtn {
+
.navbar a:hover, .dropdown:hover .dropbtn {
        background-color: red;
+
    background-color: blue;
    }
+
}
  
    .dropdown-content {
+
.dropdown-content {
        display: none;
+
    display: none;
        position: fixed;
+
    position: fixed;
        background-color: #f9f9f9;
+
    background-color: #f9f9f9;
        min-width: 130px;
+
    min-width: 130px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
+
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
+
    z-index: 1;
 
      
 
      
    }
+
}
  
    .dropdown-content a {
+
.dropdown-content a {
        float: none;
+
    float: none;
        color: black;
+
    color: black;
        padding: 12px 16px;
+
    padding: 12px 16px;
        text-decoration: none;
+
    text-decoration: none;
        display: block;
+
    display: block;
        text-align: left;
+
    text-align: left;
    }
+
}
  
    .dropdown-content a:hover {
+
.dropdown-content a:hover {
        background-color: #ddd;
+
    background-color: #ddd;
    }
+
}
  
    .dropdown:hover .dropdown-content {
+
.dropdown:hover .dropdown-content {
        display: block;
+
    display: block;
    }
+
}
  
 
/* Start footer reset =================================================== */
 
/* Start footer reset =================================================== */
Line 265: Line 268:
 
<body>
 
<body>
  
    <div class="navbar">
+
<div class="navbar">
 
  <a href="#home">Home</a>
 
  <a href="#home">Home</a>
 
  <a href="#news">News</a>
 
  <a href="#news">News</a>

Revision as of 22:52, 11 September 2018