css - How stop width when img reaches max-height? -
situation: have site images/pictures , set them nicely.
problem: in css max-height property works fine when image/pic reach max-height 15% width of image doesn't stop, wider , wider resizing browser or using wider resolution.
question: pictures aren't nice, how stop img width auto resizing when img reaches max 15% height on page?
what need: want totally fluid site percentages , img widths doesn't matter, max-height must 15% , keeping img ratio in situation.
at moment tag properties in css:
img { height: auto; max-height: 15%; }
Comments
Post a Comment