R
R
Roman2015-05-26 15:45:44
css
Roman, 2015-05-26 15:45:44

How to fix CSS for tabs?

Combined the output of comments original / facebook / vkontakte in 3 tabs.
Tabs without js, only css.
The problem is that they are displayed "above the content of the page", that is, they fit on the footer.
It's not about z-index. I can't figure out how to fix it.
Tell me :)
UPD . I rewrote css, now it's like codepen .

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman, 2015-05-27
@llgruff

Completely rewrote CSS and updated the question

V
vasilseodor, 2015-05-26
@vasilseodor

The point is position: absolute; at tab-content

D
Dzham, 2015-05-26
@Dzham

You need to remove tabs from ul>li and remove position: absolute from tabs;
Should look something like this

<ul>
<li>ВК</li>
<li>FB</li>
<li>Email</li>
</ul>
<div>
<div id="tab-content1"></div>
<div id="tab-content2"></div>
<div id="tab-content3"></div>
</div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question