Images in header position to be responsive

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Dec 30, 2013 3:11 pm
Reply with quote
Report this post
Hi,
I placed an image in header module position. Looks good on a desktop screen but on mobile devices it is cut off or not resized.
Is there a modul class suffix or an image class to get it to be responsive?


Would be nice, if someone could help me at this point.

Thanks in advance
User avatar
Junior Boarder

GK User
Mon Dec 30, 2013 5:56 pm
Reply with quote
Report this post
HI,
it depends how you have input image --- using html or css ?
User avatar
Platinum Boarder

teitbite
Thu Jan 02, 2014 2:40 pm
Reply with quote
Report this post
Hi

I was asked by @derKranich on Skype to join this conversation. Can You please tell me an url to the page with this image so I'll be able to check ?
User avatar
Moderator

GK User
Tue Jan 07, 2014 1:50 pm
Reply with quote
Report this post
I used a html module in header position on the frontpage with a simple code like:

Code: Select all
<p>
<img width="960" height="456" alt="xyz" src="/images/stories/start.jpg">
</p>
User avatar
Junior Boarder

teitbite
Tue Jan 07, 2014 1:54 pm
Reply with quote
Report this post
Hi

As we talked in Skype it was not about an image placed in the backgorund of the site. I've just checked the image You have added to a header and You need to change it's code in custom html module from:

Code: Select all
<p>
<img width="960" height="456" alt="xyz" src="/images/stories/start.jpg">
</p>


to

<p>
<img style="max-width: 100%; height: auto;" alt="xyz" src="/images/stories/start.jpg">
</p>
User avatar
Moderator

GK User
Tue Jan 07, 2014 2:00 pm
Reply with quote
Report this post
That solved the problem!
As always... thank you very much teitbite for your great support and help!
User avatar
Junior Boarder

teitbite
Fri Jan 10, 2014 5:07 am
Reply with quote
Report this post
Hi

No problem. Glad I coud help :)
User avatar
Moderator