Add a responsive design

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 Mar 18, 2013 11:39 am
Reply with quote
Report this post
Hello,

On my website : http://www.planete-nextgen.com/ I have a banner.

But my banner is not responsive :(.

This is my code :

Code: Select all
<a title="Poster manga et série" href="http://www.abystyle-studio.com/fr/" target="_blank" onclick="_gaq.push(['_trackEvent', 'clic-sortie-dataedge', 'sortie vers dataedge']);"><img class="gkResponsive"  src="/images/banniere_429x55.jpg" alt="ABYstyle" border="0" width="429px" height="55px" /></a><span style="padding-left:5px"><a href="http://www.psparadise.fr/" target="_blank"><img class="gkResponsive"  src="/images/actus/psparadise.jpg" border="0" width="446px" height="55px" /></a></span>


How to have a reponsive banner please ?
User avatar
Junior Boarder

Konrad M
Mon Mar 18, 2013 12:05 pm
Reply with quote
Report this post
Hi,
please try add to override.css
Code: Select all
#gkTopMenu img.gkResponsive {
    height: auto;
    max-width: 100%;
    width: auto !important;
}

and remember to enable override.css option in template settings.
User avatar

GK User
Mon Mar 18, 2013 8:55 pm
Reply with quote
Report this post
Thank's Konrad, it's work but I have a little problem. When I reduce the website the second banner will be under the other.

How to reduce the two banner when I reduce my website (now it's work when the website is very little) ?
User avatar
Junior Boarder

Konrad M
Wed Mar 20, 2013 2:12 pm
Reply with quote
Report this post
Try add both baners in to div's and add one class for both div's. For example 'half'. Then try add to override.css
Code: Select all
.half {
width:50% !important;
}
User avatar

GK User
Thu Mar 21, 2013 8:32 am
Reply with quote
Report this post
I have try this :

Code: Select all
<div class="half"><a title="Poster manga et série" href="http://www.abystyle-studio.com/fr/" target="_blank" onclick="_gaq.push(['_trackEvent', 'clic-sortie-dataedge', 'sortie vers dataedge']);"><img class="gkResponsive"  src="/images/banniere_429x55.jpg" alt="ABYstyle" border="0" width="429px" height="55px" /></a><span style="padding-left:5px"><a href="http://www.psparadise.fr/" target="_blank"><img class="gkResponsive"  src="/images/actus/psparadise.jpg" border="0" width="446px" height="55px" /></a></span></div>


But the first banner is under the second (not align), it's responsive but how to have the div inline ?

bug.jpg
User avatar
Junior Boarder

Konrad M
Thu Mar 21, 2013 9:39 am
Reply with quote
Report this post
Change my code to this one:
Code: Select all
.half {
width:50% !important;
float:left;
}

and remove all 'height' and 'width' parametres from your banners code.
User avatar

GK User
Thu Mar 21, 2013 8:52 pm
Reply with quote
Report this post
it's work thank's a lot :)
User avatar
Junior Boarder


cron