Css rechts uitlijnen

Status
Niet open voor verdere reacties.

pro pizza

Gebruiker
Lid geworden
24 dec 2007
Berichten
454
Hallo,
In mijn html bestand heb ik 4 divs staan:
HTML:
<html>
<head>
<link href="hh.css" rel="stylesheet" type="text/css">
<title> Website </title> 
</head>
<body>  
<div id="header">
<h1> Website Titel </h1>
</div>
<div id="radio">
</div>
<div id="radiom">
</div>
<div id="radiob" style=>
</div>
</body>
</html>

In daarbij gebruik ik het volgende css-bestand:
Code:
html {
Background-image: url(image/backlarge.png);
border: 1px solid;
margin: 0px auto;
margin-bottom: 20px;
margin-top: 10px;
margin-right: 50px;
margin-left: 50px;
height: 1240px;
}

body {
width: 850px;
margin: 0px auto;
margin-bottom: 20px;
margin-top: 10px;
}
div#header {
Background-image: url(image/header.png);
width: 448px;
height: 113px;
border: 1px solid;
margin-left: 10px;
margin-top: 10px;
float: left;
}
h1 {
 font-family: Verdana;
 font-size: 26px;
 color: #ffffff;
 font-weight: normal;
 margin: 0;
 padding: 22px 0px 0px 19px;
 float: left;
}
div#radio {
background-image: url(image/radio.png);
width: 353px;
height: 67px; 
margin-right: 10px;
margin-top: -11px;
float: right;
}
div#radiom {
background-image: url(image/radio_mid.png);
width: 353px;
background-repeat: repeat-y;
height: 87px;
float: right;
margin-right: 10px;
}
div#radiob {
background-image: url(image/radio_bot.png);
width: 353px;
height: 9px;
float: right;
background-repeat: no-repeat;
margin: 0px auto;
}
Maar de div#radiob (dus de laatste) wil niet onder de andere 2 divs( div#radio, div#radiom).
Weet iemand wat ik hier aan kan doen?
Mvg, Ruben
 
whow, wat veel code voor zoiets. Zou je een plaatje kunnen maken met hoe je de layout wilt? Dan kunnen we de code wat inkorten.


overgens,
HTML:
<div id="radiob" style=>
</div>
moet je even veranderen dat je de "style=" weghaalt, want anders klopt t niet.



:thumb:
 
Opgelost
In de html toegevoegd:
<div style="clear:both">
</div>
En daaronder de <div id="radiob">
Mvg, Ruben
 
Laatst bewerkt:
Toch blijft de vraag hoe komt het dat de borders in IE niet werken?
Mvg, Ruben
 
tja,IE het werkt niet altijd even goed als Ie now eens de engine van chrome ging jatten die is veel sneller en beter
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan