Tagged: tabs
I’m trying to figure out how to center a tabs element on my page and create a color border/highlight color on the tabs similar to the “Blog” and “Ebook” tabs on the homepage of this website – http://www.smartbugmedia.com/.
In addition to my previous question – Is there a way to insert a blog post slider and a content slider element inside of a tabbed area?
Hey!
try this code in Quick CSS field:
.active_tab {
border-top: 2px solid blue;
}
and adjust as needed.
You could try to add slider’s shortcodes into your tab element. For this activate debug mode to be able to see them.
Cheers!
Andy
Thanks for getting back to me. Unfortunately, the Quick CSS doesn’t seem to have any effect on the tabs when I added. I activated the debug mode as suggested and I can now see all of the shortcode – but I’m not really sure what to edit to center the tabs. Any other suggestions for how to accomplish these things.
Hey!
Please add this in the Quick CSS field in order to center align the tab title:
.tab_titles {
text-align: center;
}
.tab_titles .tab {
display: inline-block;
float: none;
}
Cheers!
Ismael
Thanks for your help! That CSS helped center the tabs. Then I was able to apply the border property to the “.tab_titles .tab” for the color border.