Link to home
Start Free TrialLog in
Avatar of Heather Ritchey
Heather RitcheyFlag for United States of America

asked on

Responsive CSS on row of images

I'm trying to display a row of logos below the slideshow here: http://www.gordontraining.com/

(To see it, please use the css editor in the firefox browser, or whatever you use. Just remove the very last line in the style.css that has display: none. I can't let them show until it looks correct.)

I need to keep them responsive. All the images are the same height, but obviously different widths. So I'm having problems trying to get them all the same height, yet keep their full width instead of reacting to the div column width.
If I set the img width to auto, then they overlap each other.

All the css for that row is at the end of the style sheet.

This is the actual code I'm using to display them:
<div id="tophomelogos" align="center">
<div class="photosrow">
<div class="photoscolumn">
            <img class="empphotos wp-image-1158 " src="<?php bloginfo('template_directory'); ?>/images/homelogos/LET.jpg" />
</div>
<div class="photoscolumn">
            <img class="empphotos wp-image-1158 " src="<?php bloginfo('template_directory'); ?>/images/homelogos/PET.jpg" />
</div>
<div class="photoscolumn">
        <img class="empphotos wp-image-1158 " src="<?php bloginfo('template_directory'); ?>/images/homelogos/TET.jpg" />
</div>
<div class="photoscolumn">
            <img class="empphotos wp-image-1158 " src="<?php bloginfo('template_directory'); ?>/images/homelogos/BYB.png" />
</div>
<div class="photoscolumn">
            <img class="empphotos wp-image-1158 " src="<?php bloginfo('template_directory'); ?>/images/homelogos/SynSell.png" />
</div>
<div class="photoscolumn">
            <img class="empphotos wp-image-1158 " src="<?php bloginfo('template_directory'); ?>/images/homelogos/CRW.png" />
</div>
</div>
</div>

Open in new window


If  you have a better idea for the code itself, that would even be great. I'm just trying to get the responsiveness for different browser view widths.
Avatar of Robert Granlund
Robert Granlund
Flag of United States of America image

add to the class img and height, a fixed height and width:100%.

like so:
.myClass img {
height:75px;
width:100%;
}
Avatar of Heather Ritchey

ASKER

That's better, but still squishing the two long ones toward the right.

I can tell now the heights look like they don't match, but there's some extra whitespace on the bottom of some - I can fix that in the images.
Please send me the exact url.  I'm not sure where I should be looking.
It's here: http://www.gordontraining.com/ but I have the css for that row set to display: none. I'm not sure what to use in  other browsers, but in firefox I use the css editor of the web developer extension and remove that last css line so I can see it live in the browser while working with it.

I'm sorry I can't let it display while working with it - their site gets too many visitors and they get very fussy about things if they look bad.
ASKER CERTIFIED SOLUTION
Avatar of Robert Granlund
Robert Granlund
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I switched it to use display: inline; and they're happy with that even though if the browser gets too skinny they pop down to more rows.
Thanks much for your help!