Ik dacht even snel een HTML template in elkaar te draaien voor een test. De container is 760 px breed, de content div 580 en de adsense div 180px. De content div staat goed, de adsense div staat rechts van de content div wat de bedoeling is, maar het lijkt dat hij onder de content div pas begint. Ik wil graag dat beide op gelijke hoogte beginnnen. Alle mogelijke CSS mogelijkheden en combinaties op display uitgeprobeerd maar zonder het gewenste resultaat. Iemand hier een idee?
Gebruikte HTML
Gebruikte CSS
Gebruikte 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
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Conversieratio - verhoog uw conversie</title>
<link href="_include/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container">
<div id="content">
<p>content</p>
</div>
<div id="adsense">
<p>adsense</p>
</div>
</div>
</body>
</html> |
Gebruikte 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
| /* CSS Document */
body {
overflow:visible;
background-color:#EEEEEE;
margin:0px;
padding:0px;
}
#container {
position:relative;
width:760px;
margin:0px auto;
margin-top:5px;
border:none;
background-color:#FFFFFF;
height:600px;
}
#content {
position:relative;
display:inline;
float:left;
width:580px;
margin:0px;
padding:0px;
}
#adsense {
display:inline;
float:right;
width:180px;
border-left:1px solid #EEEEEE;
margin-top:0px;
padding:0px;
}
p {
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
font-weight:normal;
color:#000000;
text-align:left;
margin:0px;
} |