Files
code.academic_webpage/style.css

99 lines
1.4 KiB
CSS
Executable File

html {
scroll-behavior: smooth;
}
body {
font-family: "Palatino", "Georgia", Times, serif;
background-color: rgb(255, 255, 250);
line-height: 1.4;
padding-bottom: 200px;
}
h1, h2, h3, h4 {
padding-top: 50px;
}
th{
font-weight: normal;
}
div#annoucement {
width: 750px;
}
table#table1 {
text-align:left;
margin-left:35;
margin-right:auto;
}
ul#course {
list-style: none;
padding-left: 5;
}
/* 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;
}
/* Links inside the navbar */
.navbar a {
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;
}
/* Main content */
.main {
margin-top: 5px; /* Add a top margin to avoid content overlay */
}
hr {
border-top: dashed 1px;
}
.notATable {
display:table;
list-style:none;
padding-left:0;
}
.notATable > li
{
display:table-row;
}
.notATable > li > *
{
display:table-cell;
padding:2px;
}
.notATable label {
font-weight:bold;
text-align:right;
}
.notATable label:after {
content: '|';
}