-
AuthorPosts
-
February 26, 2016 at 3:17 am #589546
Hi Enfold Team,
I saw this post about evenly spreading out tabs …
__________________________________________________________
I have a 4 tabs element in a page, just below a section of 4 column of equal width.
Right now, all the 4 tab tiles are stacked on the left side and their widths are determined by the text length of each tab tiles.
How can I set the width of each tab tile individually or have the 4 of them of same width and evenly spread/stretched on 100% of the page content width?
__________________________________________________________
The solution offered (which worked for the user) was this code added to the Quick CSS:
.SB-Accord-4Diets .tab {
width: 25%;
}
__________________________________________________________I have the same situation but with 3 tabs. I attempted to take this code and change it to work with 3, but alas “no”. How do I accomplish this?
Also, how does this setting affect other Tabs elements on the site?Thanks for your help!
SteveFebruary 26, 2016 at 3:13 pm #589840Hey Steve!
Please turn on custom CSS field for ALB elements – http://kriesi.at/documentation/enfold/turn-on-custom-css-field-for-all-alb-elements/ and give your tabs element a custom class and then add following code to Quick CSS in Enfold theme options under General Styling tab
.your-custom-class .tab { width: 33%; }
If that does not help, please post the link to your page.
Regards,
YigitFebruary 26, 2016 at 3:43 pm #589853Thanks for the quick reply, Yigit.
That caused the entire tab element to be 33% of the width of the entire page.What next?
Steve
February 26, 2016 at 3:46 pm #589854whoops. forgot to post the link.
suiteflow.com/wpThanks,
SteveFebruary 26, 2016 at 4:27 pm #589868Hi!
Please use the code as following
.srs-hometab1 { width: 100%; } .srs-hometab1 .tab { width: 33%; }
Cheers!
YigitFebruary 26, 2016 at 4:45 pm #589880Rock on, Yigit! That did the trick. I’m beginning to figure this out … I’ve never coded CSS before; just a dumb database guy ;).
One question: why do I have to place “!important” after some pairings? (I’ve noticed some don’t work without it)
Thanks,
SteveFebruary 26, 2016 at 4:58 pm #589887Hey!
!important is giving priority to the rule, over other rules, so the browser does read that part.
Please do let us know if we can do anything else for you, we will be more than happy to help.
Best regards,
BasilisFebruary 26, 2016 at 5:02 pm #589890February 26, 2016 at 5:37 pm #589906February 26, 2016 at 5:57 pm #589917Hi!
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)Enjoy your weekend!
Best regards,
Yigit -
AuthorPosts
- The topic ‘How do I make Tabs justified’ is closed to new replies.