Responsive Height of Intro

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
Fri Jun 07, 2013 5:21 pm
Reply with quote
Report this post
Hey,

I'm wondering if there is any chance to make the intro area's height responsive!?
As I can see, the height is fix. I want to insert an image getting smaller (width / height) with the Resolution and get rid of the unused space below the image.

http://screencast.com/t/DRQeJjV3

Thanks again
Tom
User avatar
Junior Boarder

GK User
Fri Jun 07, 2013 10:33 pm
Reply with quote
Report this post
The intro area is 100% height as default. Check on our demo theme - if page is on top (no scrol down), then You can change browser width and height, and intro stays covering entire browser area.
Could You post an url to your site - Ill try to check whats wrong.
User avatar
Moderator

GK User
Mon Jun 10, 2013 9:27 am
Reply with quote
Report this post
You are trying to use there 3rd party plugin (nivoSlider), and we dont support 3rd party extensions, so perhaps You should try to ask plugins support team?
User avatar
Moderator

GK User
Mon Jun 10, 2013 9:45 am
Reply with quote
Report this post
The module type does not effect the non responsive height of the intro area.
Even if I use the Default "Image Show GK4" the height would not be responsive.
I changed it for testing purposes.

Image
User avatar
Junior Boarder

GK User
Mon Jun 10, 2013 10:34 am
Reply with quote
Report this post
What browser are You testing with?
I have checked Chrome and Safari and image behaves exactly as it should.
User avatar
Moderator

GK User
Mon Jun 10, 2013 11:16 am
Reply with quote
Report this post
Testing with Internet Explorer 10, Firefox 21 and Opera 12, Windows 7

All the same.
Strange... Could you provide me a screenshot of your screen?
User avatar
Junior Boarder

GK User
Mon Jun 10, 2013 12:46 pm
Reply with quote
Report this post
Perhaps we should firstly describe how responsive image should look like...
With responsive sites, mainly there are just 2 possibilities... Because oryginal photos are mostly 4:3 aspect ratio, and browsers width:height aspec ration may be just any, then displayed image can behave 2 ways:
1. It is middle centered in screen, and is cut off on sides or top and bottom if browser's aspect ration doesnt fit 4:3 (or5:4 or any other). Aspect ratio of image is always correct
2. Image is set to fit on screen with aspect ratio is set to correct. Image always fits browser width, but if height of browser is larger than image's - background shows from its under.

Now with our solution, image is centered, and with nivoSlider, image has set width to 100% (so orange background was showing beneath it).

Now, with our way of showing image:
1. browser aspect = picture aspect:
http://d.pr/i/20oU
2. browser's height to small:
http://d.pr/i/ML4c
3. browser's width to small:
http://d.pr/i/Q2Wd
User avatar
Moderator

GK User
Mon Jun 10, 2013 1:17 pm
Reply with quote
Report this post
Okay, that's what it look like in my Browser, too.
And you're right, this is one posibility to make it responsive.

For me, it's important that clients see the entire Image or at least most parts of it.
So, is there any way to keep the picture in it's correct aspect ratio without cutting off the left or right side?

I just want the intro position to be more flexible.
User avatar
Junior Boarder

GK User
Mon Jun 10, 2013 2:18 pm
Reply with quote
Report this post
Sadly no - if You need to fit entire image on screen - You have a "bar" of background on bottom if browser height to width is larger than image height to width. Sadly this is mathematic equation and cant be done any other way.
User avatar
Moderator

GK User
Mon Jun 10, 2013 2:45 pm
Reply with quote
Report this post
Unfortunately it makes sense :(

Anyway, thanks for your time and help!
User avatar
Junior Boarder

GK User
Mon Jun 10, 2013 2:48 pm
Reply with quote
Report this post
No problem - what I might suggest - if with nivoSlider You could move photos so they center vertically, changing background to white and adding some left and right padding to images would make them look polaroid'ish... or even only adding top, left and right padding and leave bottom bigger. But thats just an idea how things could look visually better.
User avatar
Moderator

GK User
Mon Jun 10, 2013 3:38 pm
Reply with quote
Report this post
I will play a little bit to find a good looking solution.
Thanks ;)
User avatar
Junior Boarder

GK User
Sat Jun 29, 2013 12:13 am
Reply with quote
Report this post
How do I change the width and height of intro picture?
User avatar
Junior Boarder

GK User
Sat Jun 29, 2013 7:50 am
Reply with quote
Report this post
By uploading picture with different aspect ratio.
Image is stretched to fill entire browser visible area.
User avatar
Moderator

GK User
Wed Jul 24, 2013 7:17 pm
Reply with quote
Report this post
So there's no way to avoid stretched images while to keep their aspect ratio?
Same width but half height as it now?
User avatar
Gold Boarder

GK User
Wed Jul 24, 2013 7:53 pm
Reply with quote
Report this post
template.css line 103

div.gk-intro {
height: 91%; // <-------------- on Chrome changing on the inspector <div class="gk-intro">
position: relative;
}

Is it safe or makin it create some mess around?


Thanks.
User avatar
Gold Boarder

GK User
Thu Jul 25, 2013 12:51 pm
Reply with quote
Report this post
I changed it to "Auto". Fixed
User avatar
Junior Boarder

GK User
Wed Aug 07, 2013 9:49 am
Reply with quote
Report this post
marea wrote:template.css line 103

div.gk-intro {
height: 91%; // <-------------- on Chrome changing on the inspector <div class="gk-intro">
position: relative;
}

Is it safe or makin it create some mess around?


Thanks.


Sorry,,this is not working.. :oops:
User avatar
Gold Boarder


cron