Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Hot Image Slider free Joomla module.

Topic-icon Auto resize image to fit client area

More
6 years 6 months ago #4708 by maxcr73
maxcr73 created the topic: Auto resize image to fit client area
Hi,
when browser starts is there a way to fit automatically the image into the client area?

I've tried this great component but on some computers images are greater than monitor resolution so scroll bars appears on browser. Can image auto resized?

Thanks

Max

Please Log in to join the conversation.

More
6 years 6 months ago #4721 by ivan.milic
ivan.milic replied the topic: Re: Auto resize image to fit client area
You can put image width or height to around 100%. Around is because you have parent tag padding and image margin , so 100% would be only if image margin is 0, and padding of it's parent is 0 - otherwise scrollbars appear or part of image becomes cut off depending on many things...

To preserve ratio of image you must set this only to one dimension (chose width or height)

Do this from css or using style attribute.

Please Log in to join the conversation.

Time to create page: 0.114 seconds

Links, Partners and Social Media