Hallo ,
Ik wil twee Div's naast elkaar plaatsen.
Een is 30% en de ander 70%.
Alleen lijkt het nu alsof het scherm maar voor iets van 95% is.
Hij plaatst de eerste boven de tweede.
Aan de rechterkant laat hij nog een klein stukje zonder Div.
Mijn code:
[syntax="html"]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
<html>
<head>
<title>Test site</title>
<style type="text/css">
body {
background:#007;
color:#FFF;
text-align:center;
}
a:link{
text-decoration:none;
font-style:italic;
color:#FFF;
}
a:active{
text-decoration:none;
font-style:italic;
color:#FFF;
}
a:visited{
text-decoration:none;
font-style:italic;
color:#FFF;
}
a:hover{
text-decoration:underline;
font-style:italic;
color:#FFF;
}
#alles{
width:70%;
}
#central{
width:100%;
border-right:1px solid #FFF;
border-left:1px solid #FFF;
border-top:1px solid #FFF;
border-bottom:1px solid #FFF;
text-align:left;
}
#titel{
width:70%;
border-right:1px solid #FFF;
border-left:1px solid #FFF;
border-top:1px solid #FFF;
text-align:left;
float:left;
}
}
#datum{
width:30%;
border-right:1px solid #FFF;
border-top:1px solid #FFF;
text-align:left;
float:right;
}
</style>
</head>
<body>
<div id="alles">
<div id="titel">Test</div><div id="datum"></div>
<div id="central">Dit is een <a href="gff">Link</a>.<br />Test.</div>
</div>
</body>
</html>
[/syntax]
En ik heb nog een vraag.
Is het ook mogelijk dat als 2 borders tegen elkaar aan komen dat die dan verkleind worden zodat 't 1 lijkt?
Alvast bedankt ,
Bloe