Knowledge Base support case for Likno Web Tabs Builder, abstracted and stripped of all user’s private info.
Initial Email From: John
Initial Email Subject: Web Tabs Builder - How to style Tab Header text to give 'highlighter' effect?
Support Case Month: June 2013
Dear Kostas & team
In AllWebMenus we are able to style menu items with a highlighter effect on mouseover
e.g.
Text (HTML formatting)
normal : Home
mouseover: <span style="background-color: yellow">Home</span>
mouseclick: <span style="background-color: yellow">Home</span>
This highlights just the text, and does not change the background colour of the whole item.
I would like the text within the tab headers (not the whole of the tab header) in Web Tabs Builder to have the same behaviour. How can I do this?
Many thanks
John
Reply From: Likno Customer Support
Hello John,
In case you need only the same highlight color in all states of the header text then you just go to the Tabs Header Text/HTML and do the same as in AllWebMenus. (see image below)

In case you need different colors in each state, I would propose you to go to Tab_1 Header Text/HTML and create a class there in <style> tags. Note that then you will be able to call this class in all items.


And the result will be like in the following image:

Best Regards,
Aggelos Tsakonas
Likno Customer Support
www.likno.com
Powerful javascript menus (CSS menus/drop-down menus/sliding menus), web trees, buttons, tabs, modals, tooltips, accordions, scrollers, designs for your websites!
Reply From: John
Hi Aggelos
Many thanks for your rapid response. I see what you are saying for tabs with headers and bodies populated within Web Tabs Builder.
How would your suggestion apply where the tabs are populated through divs? (inside the page)
Best,
John
Reply From: Likno Customer Support
Hello John,
When you populate your tabs through DIVs, this means that tabs' content is inside your page. You can have the class I sent you before inside your page in <style> tags or have this in your external CSS file. Also, you can just have inline style in each tab header your want.
See the example code below:
<!DOCTYPE html>
<html>
<head>
<style>
.highlight{background-color:#FF0000;}
.highlight:hover {background-color:yellow;}
</style>
</head>
<body>
<!-- ******** BEGIN LIKNO WEB TABS CODE FOR highlightHeaders ******** -->
<script type="text/javascript">var lwtbLinkedBy="LiknoWebTabs [1]",lwtbName="highlightHeaders",lwtbBN="220";</script><script charset="UTF-8" src="likno-scripts/highlightHeaders.js" type="text/javascript"></script>
<!-- ******** END LIKNO WEB TABS CODE FOR highlightHeaders ******** -->
<div class="liknotabs_header" style="display: none;">
<span class="highlight">Header 1</span>
</div>
<div class="liknotabs_header" style="display: none;">
Header 2
</div>
<div class="liknotabs_header" style="display: none;">
<span style="background-color:#FFFFFF;">Header 3</span>
</div>
<div class="liknotabs_body" style="display: none;">
<p>Here is the text of the <b>first tab body</b>.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
</div>
<div class="liknotabs_body" style="display: none;">
<p>Here is the text of the <b>second tab body</b>.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="liknotabs_body" style="display: none;">
<p>Here is the text of the <b>third tab body</b>.</p>
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</body>
</html>
And the result:

Best Regards,
Aggelos Tsakonas
Likno Customer Support
www.likno.com
Powerful javascript menus (CSS menus/drop-down menus/sliding menus), web trees, buttons, tabs, modals, tooltips, accordions, scrollers, designs for your websites!
Reply From: John
Thanks Aggelos, that works for me!
John