IT2805/css/style.css

58 lines
719 B
CSS
Raw Normal View History

2020-09-21 23:13:02 +02:00
* {
margin: 0;
padding: 0;
}
2020-09-14 11:27:57 +02:00
2020-09-21 23:13:02 +02:00
body {
background: white;
font-family: arial, sans-serif;
}
2020-09-14 11:27:57 +02:00
2020-09-21 23:13:02 +02:00
#screen {
position: relative;
}
2020-09-14 11:27:57 +02:00
2020-09-21 23:13:02 +02:00
video {
height: auto;
width: 100%;
}
#mobile-image {
height: auto;
width: 100%;
display: none;
}
#title {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#title > img {
width: 100%;
}
article {
width: 80%; /* 100% - 10% left - 10% right = 80% */
margin: 20px auto;
}
2020-09-14 11:27:57 +02:00
2020-09-21 23:13:02 +02:00
p {
color: black;
font-size: 16px;
line-height: 1.5;
}
2020-09-14 11:27:57 +02:00
2020-09-21 23:13:02 +02:00
@media screen and (max-width: 940px) {
video {
display: none;
}
#mobile-image {
display: block;
}
2020-09-14 11:27:57 +02:00
}