A
A
Anton2015-09-20 14:37:38
css
Anton, 2015-09-20 14:37:38

Why don't overflow-x and overflow-y work?

Hello! Faced such a problem, when specifying the parent

overflow-x:hidden;
overflow-y:visible;

overflow-y:visible; - is not taken into account and the element behaves as if it was set to overflow:hidden;
Example

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
Puma Thailand, 2015-09-20
@opium

only a double container with overflow-x for one and overflow-y for the other will help here

D
Dmitry Antonov, 2015-09-20
@Sadist07

It cannot respect the #absolute block because it is not in the document flow.

O
onevetka, 2019-11-17
@onevetka

I could be wrong. But this problem seems to be solved only by reformulating the problem. When you put overflow-x or y hidden, the other setting goes to auto.

T
tim_kindrat, 2020-11-27
@tim_kindrat

I had a similar situation. We needed overflow-x: hidden , and overflow-y to be visible. So I climbed higher to the parent and where the obsessive cropping on the y axis did not bother me . Maybe someone will find this approach useful.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question