Improved header spacing.

This commit is contained in:
2019-09-19 13:33:45 +08:00
parent 0d8947be0f
commit 9d18fc2e70
2 changed files with 25 additions and 20 deletions

View File

@@ -14,8 +14,8 @@
<a href="#research">Research</a>
</div>
<div class="main">
<p> <br> </p>
<div class="main" id="home">
<p> </p>
</div>
<h1>Yang, Chen</h1>

View File

@@ -1,7 +1,12 @@
body {
font-family: "Palatino", "Georgia", Times, serif;
background-color: rgb(255, 255, 250);
line-height: 1.5;
line-height: 1.4;
padding-bottom: 200px;
}
h1, h2, h3, h4 {
padding-top: 50px;
}
th{
@@ -16,33 +21,33 @@ table#table1 {
/* The navigation bar */
.navbar {
opacity: 0.8;
overflow: hidden;
background-color: #333;
position: fixed; /* Set the navbar to fixed position */
top: 0; /* Position the navbar at the top of the page */
left: 0;
width: 100%; /* Full width */
font-weight: bold;
opacity: 0.8;
overflow: hidden;
background-color: #333;
position: fixed; /* Set the navbar to fixed position */
top: 0; /* Position the navbar at the top of the page */
left: 0;
width: 100%; /* Full width */
font-weight: bold;
}
/* Links inside the navbar */
.navbar a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 10px 16px;
text-decoration: none;
}
/* Change background on mouse-over */
.navbar a:hover {
background: #ddd;
color: black;
background: #ddd;
color: black;
}
/* Main content */
.main {
margin-top: 30px; /* Add a top margin to avoid content overlay */
margin-top: 5px; /* Add a top margin to avoid content overlay */
}