Ik heb onderstaande HTML en CSS opgesteld.
Het lukt mij alleen niet om het geheel te centreren.
Iemand een suggestie?
Je kan [code=html] of [code=css][/] gebruiken voor betere leesbaarheid :)[/]
Het lukt mij alleen niet om het geheel te centreren.
Iemand een suggestie?
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
| #container1 { position: relative; border: 1px dashed #FF0000; margin: 0px auto; } #container2 { position: absolute; left: 90px; top: 1px; border: 1px dashed #FF0000; } #header{ background: #FF0000; width: 900px; } #menu { background: #00FF00; text-align: center; width: 900px; max-width: 900px; padding: 0px; } #content { background: #0000FF; width: 900px; height: 300px; max-height: 400px; padding: 0px; } #opmaak { width: 90px; height: 700px; background: url(afbeeldingen/achtergrondplaatje.jpg); background-repeat: repeat-y; } |
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <HTML> <HEAD> <LINK href="opmaak.css" rel="stylesheet" type="text/css"> <TITLE>Website titel</TITLE> </HEAD> <BODY> <DIV id="container1"> <DIV id="opmaak" ></DIV> <DIV id="container2"> <DIV id="header">Header</DIV> <DIV id="menu">menu</DIV> <DIV id="content">Standaard content.</DIV> </DIV> </DIV> </BODY> </HTML> |
Je kan [code=html] of [code=css][/] gebruiken voor betere leesbaarheid :)[/]
[ Voor 5% gewijzigd door BtM909 op 07-11-2008 11:25 ]