Geachte Tweakers,
Ik moet voor school een website maken over Olympische Spelen in 2016.
Ik wil graag 2 plaatjes in 1 positie hebben, waarbij de ene overlapt.
Zie voorbeeld:

Op dit moment ziet het eruit:

HTML
CSS:
Ik moet voor school een website maken over Olympische Spelen in 2016.
Ik wil graag 2 plaatjes in 1 positie hebben, waarbij de ene overlapt.
Zie voorbeeld:

Op dit moment ziet het eruit:

HTML
code:
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
| <!doctype html> <html lang="nl"> <head> <meta charset="iso-8859-1"> <meta name="description" content="Volleybal Olympische Spelen 2016 in Rusland"> <meta name="keywords" content="volleybal, sport, olympische spelen, Rusland, 2016"> <meta name="author" content="DutchRedGaming"> <title> Volleybal en Olympische Spelen 2016 </title> <link rel="stylesheet" href="styles.css"> </head> <body> <section id="content"> <header> <hgroup> <h1> Volleybal en Olympische Spelen 2016</h1> </hgroup> <nav> <ul> <li><a href="#top">Home</a></li> <li><a href="Wat is volleybal.html">Wat is volleybal</a></li> <li><a href="Top 10 beste landen.html">Top 10 beste landen</a></li> <li><a href="Spelregels.html">Spelregels</a></li> </ul> </nav> <div id="logo" class="container"> <div class="Volleyball"> <img src="bestanden/volleyball.png" width="514" height="514"></div> <div class="Kicksave"> <img src="bestanden/kicksave.gif" width="200px" height="200" class="rondehoeken"></div> </div> </header> </section> </body> </html> |
CSS:
code:
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
| html{height:98%;} body{height:98%;} .container { position: relative; } .Volleyball { z-index: 1; position: center; width: 100px; height: 100px; border: 0px solid blue; } .kicksave { z-index: 2; position: center; width: 50px; height: 50px; border: 0px solid yellow; } #content{ width:800px; height:98%; margin:0px auto; padding-top:1px; padding-left:15px; padding-right:15px; -webkit-box-shadow: 4px 4px 4px 4px blue; box-shadow: 4px 4px 4px 4px blue; } hgroup h1{ color: rgba(0,100,255,0,7); front-family:serif; front-size:44px; front-weight:bold; text-align: center; } hgroup{ background:url(bestanden/banner.png); background-position:right; background-repeat:no-repeat; } nav ul{ border-top: double 3px #8e8e8e; text-align: center; } nav ul li{ float:left; padding:0px 30px; list-style-type: none; border-bottom: solid 1px #8e8e8e; } nav ul li a{ font-size: 20px; font-weight:bold; color: blue; text-decoration: none; text-shadow: 0 1px 1px blue; -webkit-border-radius:6xp; -moz-border-radius: 6px; border-radius:6px; -webkit-transition: all 1.0s ease-in-out; -mos-transition-:all 1.0s case-in-out; -o-transition-:all 1.0s ease-in-out; transition: all 1.0s ease-in-out; } nav ul li a:hover, nav ul ll a:focus { color:#fff; background: yellow; } .rondehoeken{ border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; border: 3px solid #555AE0; } |