daniel: margin werte bei float:left werden ignoriert

Beitrag lesen

hi,

mein float element hat eine breite (zumindest das des menues):

#menue_sub {
 border:1px solid black;
 border-left:none;
 background-color:#EAEAEA;
 color:#333333;
 width:150px;
 float:left;
 padding:10px 5px 10px 5px;
 margin:10px 10px 10px 0px;
 text-align: left;
}

die image-klasse hat allerdings keine breite, das stimmt.
aber ich weiß ja auch vorher nicht, wie breit die bilder werden:

.image_content {
 border:1px dotted black;
 float:right;
 margin:10px;
 padding:5px;
 background-color:#EAEAEA;
}

aber wiso ist de quelltext verschachtelt?

content_body

>image
  >menue_main
  >menue_sub
  >breadcrumbs
  >content_text
     >image

content_footer

das ist doch nicht verschachtelt, oder?
wie sollte ich es sonst machen?

grüße,
daniel