I am currently working on designing an email template for my website. Within this template, I require CSS tabs that are functional even without the use of JavaScript.
Here is the CSS styling for the tabs:
#globalnav {
position:relative;
float:left;
width:100%;
padding:0 0 1.75em 1em;
margin:0;
list-style:none;
line-height:1em;
}
#globalnav LI {
float:left;
margin:0;
padding:0;
}
#globalnav A {
display:block;
color:#444;
text-decoration:none;
font-weight:bold;
background:#ddd;
margin:0;
padding:0.25em 1em;
border-left:1px solid #fff;
border-top:1px solid #fff;
border-right:1px solid #aaa;
}
#globalnav A:hover,
#globalnav A:active,
#globalnav A.here:link,
#globalnav A.here:visited {
background:#bbb;
}
...
This HTML code shows how the tabs appear:
<ul id="globalnav">
<li><a href="#" class="here">INFOmail Hoy</a></li>
...
</ul>
However, these tabs do not function as intended, as they do not change content when clicked. I need them to properly act as tabs, switching content based on user interaction, especially in email clients like Gmail or Outlook.