Not responsive Image Show module

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
Thu May 29, 2014 8:48 am
Reply with quote
Report this post
good morning
I created a site with this template, the images of the Image Show module GK4 are not responsive, if I open with a smartphone can be seen cut.
how can I do?
thanks
User avatar
Junior Boarder

GK User
Thu May 29, 2014 5:47 pm
Reply with quote
Report this post
Hello,

If you really need, you can override the used images using CSS like this:

Code: Select all
.gkIsWrapper-gk_creativity .figure:nth-child(1) {
background-image: YOUR_IMAGE;
}
.gkIsWrapper-gk_creativity .figure:nth-child(2) {
background-image: YOUR_IMAGE;
}
.gkIsWrapper-gk_creativity .figure:nth-child(3) {
background-image: YOUR_IMAGE;
}
...
.gkIsWrapper-gk_creativity .figure:nth-child(n) {
background-image: YOUR_IMAGE;
}
User avatar
Administrator

GK User
Sun Jun 01, 2014 2:33 pm
Reply with quote
Report this post
Hi,

I have the same problem, in this case trying to set it right in my browser ( http://37.26.108.116/~hellopar/ )
is something wrong with 100% width and auto height?
User avatar
Fresh Boarder

GK User
Mon Jun 02, 2014 8:23 am
Reply with quote
Report this post
@inesko - please remember that images in the slides uses background-size: cover.
User avatar
Administrator

GK User
Tue Jun 03, 2014 3:30 pm
Reply with quote
Report this post
good evening
thanks for the help
I wrote the code like this:

.gkIsWrapper-gk_creativity .figure:nth-child(1) {
background-image:url (http://localhost/luppoloepatata/images/spot/spot1.jpg);
}
.gkIsWrapper-gk_creativity .figure:nth-child(2) {
background-image:url (http://localhost/luppoloepatata/images/spot/spot2.jpg);
}
.gkIsWrapper-gk_creativity .figure:nth-child(3) {
background-image:url (http://localhost/luppoloepatata/images/spot/spot3.jpg);
}
but does not work
What's wrong?

(localhost
because I'm working in local)
User avatar
Junior Boarder

GK User
Wed Jun 04, 2014 11:19 am
Reply with quote
Report this post
Did you tried to add !important?
User avatar
Administrator

GK User
Thu Jun 05, 2014 9:41 am
Reply with quote
Report this post
I tried but it does not work...
User avatar
Junior Boarder

GK User
Thu Jun 05, 2014 10:16 pm
Reply with quote
Report this post
I've done small success test on our creativity demo page - I've added in the chrome dev tools the following code to the image show CSS file:

Code: Select all
.gkIsWrapper-gk_creativity .figure:nth-child(1) {
background-image: url('http://demo.gavick.com/joomla25/creativity/modules/mod_news_pro_gk5/cache/k2.items.cache.1379b5de7cb668c186ab48a9361eabd7_Lnsp-672.jpg')!important;
}


and it works perfectly so my snippets are correct.
User avatar
Administrator


cron