Takhtak Team
Takhtak Team

Reputation: 141

safari not scrolling when the child element is over the parent

I have tab sections. When clicking on tab, its child content comes over the sections with CSS

position: absolute;
z-index: 9999;
top: 0;
left: 0;
height: 250px;
overflow: scroll;

but it seems the child element isn't scrollable.

Upvotes: 0

Views: 372

Answers (1)

Rameez Bukhari
Rameez Bukhari

Reputation: 486

Please mention the Overflow-x or y axis and don`t use overflow:scroll; use overflow:hidden;

.abc {
height:100px;
overflow-x:hidden;}
<div class="abc">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</div>

Upvotes: 1

Related Questions