about summary refs log tree commit diff
path: root/usth/ICT3.2/prac/1/task11.css
blob: dc06cc2a1075387f053c28a80a494dfe1e14dc0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
* { box-sizing: border-box }

body { margin: 0 }

header, nav, article, footer {
    background-color: #5b9bd5;
    color: white;
    margin: 1vh 1vw;
}

header, footer {
    width: 96vw;
    text-align: center;
}

nav, article {
    float: left;
    height: 60vh;
}

header {
    height: 20vh;
    line-height: 20vh;
}

nav { width: 25vw }

article { width: 69vw }

footer {
    height: 10vh;
    line-height: 10vh;
}

@media (max-width: 690px) {
    nav, article {
        width: 96vw;
        height: auto;
    }
}

section:after {
    content: '';
    display: table;
    clear: both;
}

p, img { margin: 1em }

.box {
    border: 2px solid #cbcbcb;
    background-color: #538135;
    text-align: center;
    padding: 0.5em;
}

img {
    width: 10vw;
    height: 10vw;
    border: 2px solid #cbcbcb;
}

a { text-decoration: none }