ich hab hier folgendes problem
ich hab ein
HTML-Quellcode
- <style>
- .userpanel{
- margin-top:110px;
- float:right;
- }
- .userpanel_box{
- background: transparent;
- float:right;
- }
- .userpanel_more{
- float:right;
- height:100%;
- border:1px solid red;
- width:100px;
- }
- </style>
- <div class="userpanel">
- <div class="userpanel_box">......</div>
- <div class="userpanel_more"></div>
- </div>
userpanel ist ein float-element und hat deshalb eigentlich die höhe null
jetzt hätte ich nun gerne, dass userpanel_more genau so groß ist, wie serpanel_box, dessen größe nach dem inhalt bestimmt wird.
hätte es ja gerne mit hight:100% gemacht, funktioniert aber naturlich nicht. entweder bleibt die höhe bei null oder hat die selbe höhe wie der bod-tag. das hängt vom doctype ab.
hat da jemand eine schlaue idee wie ich das anstellen kann, so dass beide größen abhängig von der größe von userpanel ist?
die höhe einfach fest zu setzten wäre zu starr.
danke schon mal
gruß