I’ve modified code found on this article: http://www.sitepoint.com/you-dont-need-javascript-for-that/
The problem is my link is unclikable on tab 2. How do I do it clickable.
Here’s the code, I past the whole thing so you can easily check it:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Pure CSS Tabs</title>
<style>
.tabs { display: inline-block; margin-right: 25px;}
.tabs input[type="radio"]{ display: none; }
.tabs input:checked + a + ul {
display: block;
position: absolute;
left: 0;
top: 30px;
}
.tabs a:focus + ul {
display: block;
position: absolute;
left: 0;
top: 30px;
width: 100%;
min-height: 350px;
height: auto !important;
background: #fff;
}
.tabs ul {
display: none;
width: 100%;
}
.tabs ul li { display: inline; margin-right: 10px; }
</style>
</head>
<body>
<div class=wrap>
<div class=tabs tabindex=0>
<input checked=checked type=radio />
<a href='#' role=button>Tab 1</a>
<ul>
<li><a href='home.php'>Link on tab 1</a></li>
</ul>
</div>
<div class=tabs tabindex=0>
<input type=radio />
<a href='#' role=button>Tab 2</a>
<ul>
<li><a href='index.php'>Link on tab 2</a></li>
</ul>
</div>
</div>
</body>
</html>
Thank you,