Show sourcecode
The following files exists in this folder. Click to view.
public_html/gamla-kurser/webbutv1/ovningar/meny2/css/
css_ovning9.css
css_ovning9_alt.css
css_ovning9_alt.css
115 lines ASCII Windows (CRLF)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
body {
display: flex;
justify-content: center;
}
header {
border: 1px solid black;
color: white;
background-color: rgb(216, 112, 112);
grid-column: 1 / 5;
grid-row: 1/1;
text-align: center;
}
header h1 {
margin-top: 20px;
}
nav {
width:200px;
padding:10px;
background-color:#0F3;
border:1px black solid;
}
nav a
{
display: block;
padding: 5px 10px;
border: 1px solid #333;
background-color: #ccc;
color: #000;
text-decoration: none;
margin: 0;
}
nav a:hover {
background-color: yellowgreen;
}
article {
grid-column: 2/4;
grid-row: 2/2;
border: 1px solid black;
padding-left: 20px;
padding-right: 20px;
background-color: lightgray;
}
img {
border: 1px solid black;
width: 100px;
margin-left: 10px;
}
aside {
width: 200px;
text-align: center;
background-color: yellow;
grid-column: 4/5;
grid-row: 2/4;
border: 1px solid black;
}
aside h1 {
margin-top: 15px;
}
footer {
grid-column: 2/4;
grid-row: 3/3;
background-color: grey;
border: 1px solid black;
text-align: center;
}
h1,h2,h3,p,a {
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
font-style: Calibri;
margin: 10px;
}
.container {
width: 800px;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 75px 450px 50px;
border: 1px solid black;
}
.green-box {
background-color: lime;
grid-column: 1 / 1;
grid-row: 2 / 4;
border: 1px solid black;
}
.adbox {
background-color: white;
border: 1.5px solid red;
margin-right: 25px;
margin-left: 25px;
margin-top: 10px;
margin-bottom: 10px;
padding: 10px;
}
#date {
font-size: 0.4em;
}
#selected {
background-color: orangered;
font-weight: bold;
}