This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > July 2007 > max-height for different div's





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author max-height for different div's
ll

2007-07-27, 6:22 pm

Hi,
I am working on an image gallery which will have a 'large images'
page, and those images need to all be the same side. On that large
images page, there will also be a logo graphic, which needs to have a
different max-height. currently, I have that included below. Is
there a better (conditional) method for applying the max-
height(height) in different div's, to allow for the IE5 problems?
Thanks, Louis

--------------------------------
<style type="text/css">
img {
max-height:100px;
}
*html, *large_image, img{
max-height:100px;
height:auto !important;
height:100px;
max-width:100px;
width:auto !important;
}
*html, *campus_header, img{
max-height:100px;
height:auto !important;
height:100px;
max-width:100px;
width:auto !important;
}
</style>

<div id="large_image"><img src="#dir##lg_image#"></div>
<br><br>
#img_text#
<div id="campus_header"><img
src="3_campus_header_jan2003_c_long.jpg"></div>

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews