HTML:
[HTML]
HTML:
<div id="foto" style="display: none" class="inhalt">
<div class="divbilder">
<img src="portrait.jpg" alt="">
</div>
<div class="divbilderbeschreibung" >
asdjf
</div>
<div class="text">
Das ineressante ist das divbilder und divbilder ein margin top haben und es funktioniert...ich will aber auch ein margin top für div text...dort funktioniert es aber nicht! Weis wer warum?
HTML:
.divbilder {
color:white;
background:black;
margin-left:20px;
margin-top:35px;
margin-bottom:5px;
float: left;
width: auto;
height: auto;
border: 1px solid silver;
}
.divbilderbeschreibung {
color:white;
background:black;
float: left;
margin-left:50px;
margin-top:75px;
height: auto;
width:50%;
border: 1px solid silver;
}
.text {
clear:both;
background:black;
width:80%;
height:auto;
margin-left:auto;
margin-right:auto;
margin-top:250px;
}