je vergeet je ul af te sluiten

verder kun je ff in je #menu_data "list-style: none" opgeven om de bullets weg te halen. Ook kun je net zo goed de menu_data div weghalen en je ul hetzelfde id opgeven. Zijn immers beiden block-level elements en de style die toepast op je menu_data div kun je net zo goed toepassen op je ul.
verder ga ik je ff een beetje op weg helpen.. momentje
bij deze:
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>lorem ipsum</title>
<link rel="stylesheet" href="bef.css" />
</head>
<body>
<div id="content-holder">
<ul id="menu-data">
<li><a href="#">link</a></li>
<li><a href="adxmlcls.asp">link</a></li>
<li><a href="#">link</a></li>
<li><a href="#">link</a></li>
</ul>
<div id="content-data">
<h1>Lorem ipsum</h1>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus tellus. Quisque metus. Sed mollis sem eu nulla. Nulla facilisi. Fusce accumsan elementum ante. Integer aliquam volutpat dui. Suspendisse potenti. Nulla id mauris. Maecenas egestas tortor non odio. Ut tempus cursus ipsum. Etiam elit quam, suscipit eget, feugiat vitae, luctus blandit, elit. Nam sollicitudin luctus turpis. Vestibulum metus neque, commodo non, ultricies at, blandit nec, odio. Vestibulum hendrerit. Aenean facilisis lobortis quam.
</p>
<p>
Sed lobortis tempus orci. Nam dignissim. Cras mi neque, vehicula in, lobortis quis, molestie a, arcu. Nullam suscipit, elit id vulputate tempus, tortor pede vehicula est, at egestas metus dolor consectetuer justo. Vestibulum fringilla. In sodales congue est. Ut fermentum. Curabitur malesuada posuere enim. Cras id diam. Praesent auctor scelerisque velit. Donec porttitor. Nulla facilisi. In ac dui nec lectus fringilla tincidunt. Cras ac urna.
</p>
<p>
Donec bibendum velit at sapien. Vestibulum vel odio non orci eleifend lobortis. Pellentesque eu mauris quis lectus fringilla dictum. Maecenas ut nibh eu mi placerat volutpat. Aenean sit amet nulla eget leo congue semper. In id odio. Vivamus vestibulum accumsan lacus. Mauris eget ligula. Donec leo est, dignissim vitae, vestibulum non, ullamcorper non, urna. Morbi eget wisi sed urna tempus aliquam.
</p>
</div>
</div>
</body>
</html> |
css, waarbij ik verder niet gekeken heb naar selectors die er nix mee te maken hebben
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
| body {
background-color: #ffffff;
margin : 0;
}
p, li {
font-family : Arial;
font-size : 12px;
color : #494949;
}
pre {
font-family : Courier New, Lucida Console;
font-size : 12px;
margin : 2px;
padding : 2px;
border-style : solid;
border-width : 1px;
border-color : #dfdfdf;
background-color: #efefef;
}
h1 {
font-family : Verdana, Arial;
font-size : 18px;
font-weight : normal;
color : #494949;
}
a:link, a:active, a:visited {
color : #545454;
}
a:hover {
color : #656565;
}
#content-holder {
width : 85%;
position: relative;
background-color:#FFFFFF;
margin-top : 30px;
margin-bottom : 10px;
margin-left : auto;
margin-right : auto;
padding : 5px;
border : 1px solid #000000;
}
#menu-data {
position: absolute;
top: 0;
left: 0;
width : 120px;
padding : 5px;
margin : 0;
list-style : none;
}
#menu-data a:link,
#menu-data a:active,
#menu-data a:visited {
padding : 2px;
margin : 0;
font-family : Arial;
font-size : 11px;
font-weight : bold;
color : #212121;
text-decoration : none;
border-style : solid;
border-width : 0 0 1px 3px;
border-color : #e2e2e2;
}
#menu-data a:hover {
border-color : #999999;
background-color: #e2e2e2;
}
#content-data {
margin: 0 0 0 130px;
padding : 5px;
border: 1px solid #afafaf;
} |
Hierbij ga er ik dus, zoals ik al zei, vanuit dat de content altijd "hoger" is dan het menuutje. Is dat niet zo dan moet je ff je floats clearen.
[
Voor 136% gewijzigd door
Sappie op 09-05-2005 14:56
]