-
AuthorPosts
-
April 20, 2021 at 11:49 am #1295509
Hi, Enfold team.
I already use tabs on other pages of the website and you have already helped me a lot with costumizing them in the topic just before.
Now I would like to use tabs in a different arrangement (tabs on the side, not at the top) for another page and make some changes here as well (adjust spacing, remove borders and shadows).
I’ve already tried to do it by myself, but unfortunately it didn’t work.So please help.
Thank you very much in advance.
Best regards,
fkmApril 22, 2021 at 7:03 am #1295939Hey fkm,
Please try the following in Quick CSS under Enfold->General Styling:
#geschaeftsfuehrung-content p, #geschaeftsfuehrung-content .tab_inner_content { margin-top: 0; } @media only screen and (max-width: 767px) { #geschaeftsfuehrung-content .tabcontainer { border-color: transparent; } #geschaeftsfuehrung-content .tab_content { box-shadow: none; } }
Best regards,
RikardApril 22, 2021 at 10:49 am #1295987Hey Rikard,
thank you very much for your reply and your help.
1. The first code is working well (“screenshot1”). So I used it on the other tabs (#assistenz, #architekten etc.), too. Thanks a lot.
Is it necessary to do that for each individual tab (like I just did) or is it possible to apply the code to all tabs at once on this page via an tab-ID or something like that?2. I also would like to make the column with the tab titles wider for the desktob view (please see “screenshot2”). Please let me know how to do it.
3. When the “Bauzeichner” tab is active, a small shadow appears at the bottom. Please let me know how to remove it (“screenshot3”).
4. The second code you gave me (mobile view) unfortunatelly doesn´t work in my case. The borders and shadows still showing (“screenshot4”). Please give me some advice on what I could have done wrong to fix the issue.
Thank you very much in advance.
Best regards,
fkmApril 24, 2021 at 7:23 am #1296476Hi,
1. You can remove the section ID from the code I posted, it should then apply to all the elements on your site.
2. Please try this in Quick CSS:
@media only screen and (min-width: 1024px) { .active_tab_content { padding-left: 40px !important; } }
3. I can’t see that happening on my end, in which browser are you seeing it?
4. Try this instead:
@media only screen and (max-width: 767px) { .responsive #top .main_color .tabcontainer { border-color: transparent; } .noborder_tabs.sidebar_tab_left .tab_content { box-shadow: none !important; } }
Best regards,
Rikard- This reply was modified 3 years, 6 months ago by Rikard.
April 26, 2021 at 10:31 am #1296716Hi Rikard,
thank you very much for your reply.
1. I removed the section ID from the code (as seen below) and suddenly it´s not working anymore. Please let me know my mistake.
.tab_inner_content {
margin-top: 0;
}Could it be a problem that I already use horizontal tags on other pages, for which I have made some adjustments in the Quick CSS?
2. This one doesn´t work for me, nothing seems to happen. And I actually would like to make the tab title column wider, so that the two-line titles (e.g. “Assistenz der Geschäftsführung”) are showing on just one line at desktop views. Please give me a solution for this.
3. It was visible in Firefox and Chrome, but I just used the code you gave me at point 4 to remove the shadow and it works. :)
4. This works fine – now it looks exactly as desired on smartphones. Thank you very much!
Thank you in advance for another answer and for your support.
Best regards,
fkmApril 28, 2021 at 6:55 am #1297105Hi,
1. This CSS is applying at the moment:
#top .tabcontainer .tab_content.active_tab_content { background: white!important; color: #1a1a18; border: none!important; padding-left: 0px!important; padding-top: 12px !important; }
Do you know where that is added? The padding-top value needs to be adjusted to 0.
2. It looks like the code from point 1 is applying here too, you need to adjust the padding-left value, or remove the !important part of the code.
Best regards,
RikardApril 28, 2021 at 3:29 pm #1297172Hi, Rikard.
Thank you very much for your reply.
1. I´m using this CSS (in Quick CSS) for horizontally arranged tabs on the project pages of the website (please see the link to an example page below).
If I change the values, the spacing for these tabs is no longer as desired.
Nevertheless, I removed the “!important” of the padding-top and -left and tried to use the following CSS for the vertically arranged tabs (which only affect this one page) via the page ID:@media only screen and (min-width: 767px) {
.page-id-2480 .tab_inner_content {
margin-top: -11px!important;
}
}And It seems to work. Is that a legitime practice?
2. To make the column of the tab titles wider, I tried the same principle as above. Unfortunately it didn’t work this time.
What else can I do in this case please?Thanks in advance.
Best regards,
fkmMay 2, 2021 at 4:29 am #1297759Hi,
Thanks for the update.
1. Yes, if that code does what you want it to do, then it’s perfectly fine to use.
2. Could you give us access to your site, so that we can try to add the code for you please? Do you want it to apply only the page in private, and only on desktop size screens?
Best regards,
RikardMay 3, 2021 at 11:58 am #1297974Hi, Rikard.
Thank you very much for your reply.
1. Alright, that´s fine. :)
2. Of course I’ll give you access to my site (please see below). Thanks in advance.
The page was private because I wanted to use it as a draft page. It should replace the page under the menu item “Büro” as soon as it was completed.
I have just replaced the page. So now it’s only about this page and the changes to the tabs also only affect this page. Please see the link below.
The tabs already look very good on smartphones. So I´d like to get a wider column for the tab titles only on larger screens (desktop, tablets).Best regards,
fkmMay 4, 2021 at 8:23 am #1298203Hi,
Thanks for that. I’ve added this to your Quick CSS box:
@media only screen and (min-width: 1024px) { .active_tab_content { padding-left: 100px !important; } }
And it’s applying to your site, please review it.
Best regards,
RikardMay 4, 2021 at 9:43 am #1298228Hi, Rikard.
Thanky you very much for your reply and for your support.
It´s applying to the side, right. And it already looks better with that. I think we are pretty close. :)
Because of it´s applying to other sides where I´m using horizontal tabs that I don´t wanna change, I just added the page ID.Still I´d actually like to get a wider tab title column (padding right?) instead of a wider active tab content column (padding left).
Please see screenshots.
Please let me know the correct identification or rather the correct CSS for this.Thanks a lot in advance.
Best regards,
fkmMay 5, 2021 at 6:56 am #1298439Hi,
Thanks for the update. You can simply increase the padding in the code I added, for example:
@media only screen and (min-width: 1024px) { .active_tab_content { padding-left: 150px !important; } }
Best regards,
RikardMay 6, 2021 at 10:03 am #1298736Hi, Rikard.
Thank you very much for your reply again.
Unfortunately, increasing the padding of the active tab was not what I was looking for, because tab titles that were shown in two lines (e.g. “Assistenz der Geschäftsführung”) didn´t change with that.
I have now tried several css codes that I could find for enfold tabs and it finally worked with the following one:
@media only screen and (min-width: 1200px) {
.page-id-26 .tab_titles {
width: 500px !important;
}
}Still your codes helped me a lot to make further adjustments.
Please see screemshot.
So thank you very much for your support and for your patience. :)To adapt the layout for smaller screens (tablets), I also used the following codes:
@media only screen and (min-width: 767px) {
.page-id-26 .tabcontainer .tab_titles div {
font-size: 14px!important;
padding-top: 1px;
}
}@media only screen and (min-width: 767px) {
.page-id-26 .tab_titles {
width: 245px;
}
}@media only screen and (min-width: 767px) {
.page-id-26 .active_tab_content {
padding-left: 102px !important;
}
}@media only screen and (min-width: 767px) {
.page-id-26 .tab_inner_content {
margin-top: -23px!important;
}
}…
For me as a layman it looks a bit bumbling, but if it’s technically ok, I’ll leave like that because it seems to work (!?).
Best regards,
fkmMay 8, 2021 at 9:44 am #1299097Hi,
Great, I’m glad that you found a solution, and thanks for sharing. If the CSS does what you want it to do, then I don’t see any problem with using it.
Best regards,
RikardMay 10, 2021 at 10:49 am #1299305Hi, Rikard.
If so, mission: complete. :)
Thank you very much.
Best regards,
fkmMay 11, 2021 at 5:58 am #1299556Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonMay 11, 2021 at 9:23 am #1299608Hi, Jordan Shannon.
Thank you very much for your message.
You can close the topic – it´s successfully done.
Best regards,
fkmMay 11, 2021 at 3:47 pm #1299709Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Adjust spacing and remove borders/shadows on tabs’ is closed to new replies.