Adjust the display of the tabs

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 Sep 22, 2016 10:38 am
Reply with quote
Report this post
Hi,
I tried to adjust the display of the tabs on the home page in the different display, but I could not do it. can you help me please !
Image

the "tabs with" button does not work for this module and I know why ?
Image
User avatar
Senior Boarder

teitbite
Fri Sep 23, 2016 5:54 pm
Reply with quote
Report this post
Hi

Please tell me the url to the page where I'll be able to see this problem.
User avatar
Moderator

GK User
Sat Sep 24, 2016 9:24 am
Reply with quote
Report this post
Hi,
I'am sorry i forgot to show you the URL ! http://www.aidepharmacien.ma

About the problem, it can that it displays correctly in your screen but especially not in small screens offices.
User avatar
Senior Boarder

teitbite
Mon Sep 26, 2016 12:21 pm
Reply with quote
Report this post
Hi

I's too narrow columns for 3 tabs, try set them one under the other with this code:

Code: Select all
@media only screen and (min-width:841px) and (max-width: 1325px) {
#gk-tab-1 .gkTabsWrap.vertical ol li,
#gk-tab-1 .gkTabsWrap.horizontal ol li {
float: none;
}
}
User avatar
Moderator

GK User
Tue Sep 27, 2016 10:31 am
Reply with quote
Report this post
Hello teitbite,
for the first time, I will not take your answer ! because I always prefer to have the unit tabs horizontally. i'am sorry for That.
in the other hand, I tried to solve this problem by adjusting the width of the sidebar. "right and left"
instead of "left sidebar with = 19,15%" I put "left sidebar with = 20,15%"

how you found as solution ? it may pose some problem to the template site ?

thank you so much for you answer
User avatar
Senior Boarder

teitbite
Wed Sep 28, 2016 11:09 am
Reply with quote
Report this post
Hi

You may change the width of sidebar in template configuration, but Your site look ok right now and after resizing main area it may not look that good anymore.

Simply sidebar it too narrow to have more than 2 tabs there.
I would advice to get rid of tabs and post this modules one under the other or maybe change the names on tabs with images or symbols.
User avatar
Moderator

GK User
Fri Sep 30, 2016 9:46 am
Reply with quote
Report this post
Hi teitbite,
the idea of replacing the names with the images is great but I do not see how?
User avatar
Senior Boarder

teitbite
Sun Oct 02, 2016 11:02 am
Reply with quote
Report this post
Hi

You will need an extra css code:

Code: Select all
#gkSidebarLeft .gkTabsWrap.vertical ol li {
    border: medium none;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: -999px;
    width: 33%;
    background: none no-repeat center center transparent;
}

#gkSidebarLeft .gkTabsWrap.vertical ol li:nth-child(1) {
background-image: url(path to image 1);
}

#gkSidebarLeft .gkTabsWrap.vertical ol li:nth-child(2) {
background-image: url(path to image 2);
}

#gkSidebarLeft .gkTabsWrap.vertical ol li:nth-child(3) {
background-image: url(path to image 3);
}
User avatar
Moderator

GK User
Fri Oct 07, 2016 4:52 pm
Reply with quote
Report this post
Hi teitbite,
your code works fine. I tested and the display is much better. I'm just looking images suitable to replace texts

thank you so much. you are the best !
User avatar
Senior Boarder

teitbite
Mon Oct 10, 2016 4:48 pm
Reply with quote
Report this post
Hi
Glad I could help.
---
If You were satisfied with our support please let other users know on Twitter: http://twitter.com/gavickpro or Facebook: http://www.facebook.com/gavickpro
User avatar
Moderator


cron