PDA

View Full Version : Title Image Resizing?


Peter Cook
03-21-2015, 09:52 AM
Hi all, this has probably been asked before. However, I cannot find it anywhere here. Here goes! My titleimage being a set length expands beyond the page width when being viewed outside of the of the image size width, i.e. If the browser is resized, you can scroll beyond the page width due to the image being larger than the with of the browser. The question probably has a simple answer, but I cannot find it :( Can you set the titleimage size to percentage of the page, similar to the stylevar, titleimage_padding. but to the page width?

Basically what I am trying to achieve is to keep the image to a percentage of the page width. Alternatively is there another way I can achieve this by image resizing within VB, rather than chopping the image down or having no image at all as I would like to keep the image as full size as possible.

I hope this all makes sense!

Seven Skins
03-21-2015, 11:48 AM
You can try using this css...

max-width: 100%

Peter Cook
03-21-2015, 11:53 AM
Thanks where should I add this text?

You can try using this css...

max-width: 100%

Seven Skins
03-21-2015, 02:22 PM
add this to additional.css template.

.logo-image img {width: 100%; max-width: 100%}

Peter Cook
03-21-2015, 05:33 PM
Thanks I'll give it a try :) That worked great! Thank you very much! top support :)