Forum Moderators: not2easy
#*$!#*$!#*$!xx oooo
#*$!#*$!#*$!xx oooo
#*$!#*$!#*$!xx oooo
#*$!#*$!#*$!xx oooo
#*$!#*$!#*$!#*$!#*$!x
#*$!#*$!#*$!#*$!#*$!x
#*$!#*$!#*$!#*$!#*$!x
Firefox displays correctly.
IE7 displays like this: (possibly IE6 and IE5 as well)
#*$!#*$!#*$!xx oooo
#*$!#*$!#*$!xx oooo
#*$!#*$!#*$!xx oooo
#*$!#*$!#*$!xx oooo
#*$!#*$!#*$!xx
#*$!#*$!#*$!xx
#*$!#*$!#*$!xx
#*$!#*$!#*$!xx
code:
<?php if ($node->node_images) {?>
<!-- Node images -->
<div class="node-images" rowspan="2">
<?php print $node->node_images?><?php?>
</div>
<?php }?>
<div class="content"><?php print $content?></div>
relevant css:
.node-images a img {
margin-bottom: -3px;
}
.node-images {
float: right;
border: 1px solid #000;
padding: 5px;
margin-left: 10px;
margin-top: 10px;
}
.node .content {
text-align: left;
font-size: 0.85em;
line-height: 1.3;
min-height: 137px;
}
[edited by: Robin_reala at 7:29 pm (utc) on Mar. 2, 2007]
But I really would like to keep a minimum height in my layout.
It consists of a title, description, right thumbnail, bottom links:
title
#*$!#*$!#*$!#*$!#*$!x ooo
#*$!#*$!#*$!#*$!#*$!x ooo
#*$!#*$!#*$!#*$!#*$!x ooo
link1 link2 etc
When the page is maxed out, I want the links to be flush with the thumbnail, which are generated fixed at 150px.
When the page is maxed out, the links will be higher than the bottom of the thumbnail, which doesn't look too pretty imo.
title
#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$! ooo
link1 link2 ooo
ooo
min-height insures everything is flush when maxed:
#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$!#*$! ooo
ooo
link1 link2 ooo
Is there a way to keep min-height with my text wrapping as it should?
IE6 however refuses to recognize min-height whatsoever. Whether with the parent, or without the parent...
Do you know of a solution for IE6?
Thanks again!
Even when putting those elements into a parent div , the text still refuses to wrap around my floated image.
min-height is definitely the culprit, but i can't find anyone else with this issue on google... very frustrating...
Regarding min-height and IE6 there’s a small problem - it doesn’t support it. Luckily IE6 with treat height like min-height in this situation, so if you give the container a height and only show that value to IE5+6 then that should work. You could use conditional comments but for this I’d probably go for the tried and tested * html hack:
.my_wrapper { min-height: 137px; }
* html .my_wrapper { height: 137px; } /* :hack: IE5+6 don’t support min-height */