Hey,
Mijn layout is nu als volgt:
*knip* Maak hier even een jpeg of png van
Dit is net wat ik wou, maar ik vroeg me af of ik het op een correcte manier heb geïmplementeerd? De CSS validator zegt van wel, maar wat vinden jullie ervan? Slordige CSS code of is dit OK?
Merci!
naf10
Mijn layout is nu als volgt:
*knip* Maak hier even een jpeg of png van
Dit is net wat ik wou, maar ik vroeg me af of ik het op een correcte manier heb geïmplementeerd? De CSS validator zegt van wel, maar wat vinden jullie ervan? Slordige CSS code of is dit OK?
HTML:
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" type="text/css" href="stylesheet.css" /> <title>Untitled Document</title> </head> <body> <div id="container"> <div id="logo"> <img src="ankylo_logo.gif" alt="logo ankylo" /> </div> <div id="languages"> Nederlands | Engels </div> <div id="home-block">test</div> <div id="info-block">test</div> <div id="prices-block">test</div> <div id="contact-block">test</div> <div id="footer">ankylo | info@ankylo.be | +32495842704</div> </div> </body> </html> |
Cascading Stylesheet:
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
| #container { width: 880px; margin: auto; position: relative; } #logo { position: absolute; width: 600px; height: 130px; } #languages { position: absolute; left: 600px; width: 290px; height: 130px; text-align: right; } #home-block { position: absolute; top: 130px; width: 440px; height: 140px; background: #e7e8d9; } #info-block { position: absolute; top: 130px; left: 450px; width: 440px; height: 140px; background: #e7e8d9; } #prices-block { position: absolute; top: 280px; width: 440px; height: 150px; background: #e7e8d9; } #contact-block { position: absolute; top: 280px; left: 450px; width: 440px; height: 150px; background: #e7e8d9; } #footer { position: absolute; top: 450px; width: 900px; text-align: center; } |
Merci!
naf10
[ Voor 1% gewijzigd door BtM909 op 15-07-2010 17:23 ]