Overflow-y: auto and overflow-x: visible at the same time?

I would like to put this property for a div:

.content { position: relative; overflow-y : auto; overflow-x: visible; } 

According to this page , if it is indicated as “visible” and the other is “scrolling” or “auto”, then “visible” is set to “auto”. Thus, it is not possible to use overflow-y: auto and overflow-x: visible at the same time.

However, I need to place these properties for the website, is there any way to do this?

Vanessa found the answer on her own. Here he is:

OK, I fixed the problem :) If someone has such problems: do not forget to remove the relative position of the parent element (which has the overflow property): an absolute div will be set according to the parent div, which have a relative position. If not, it will be placed according to the body! - Vanessa Jan 19 '12 at 5:38

+7
source share
1 answer

Vanessa https://stackoverflow.com/users/1151236/vanessa says: "Ok, I fixed the problem :) If anyone has such problems: remember to remove the relative position of the parent element (which has the overflow property): the absolute div will be "placed according to the parent div, which has a relative position. If not, it will be placed according to the body!"

0
source

All Articles