+ 3

Overflow:hidden is not working(body)[solved]

I just declared overflow:hidden in body tag but it not working. It works in PC not in mobile phones why? https://code.sololearn.com/WcqBIG3jOBNB/?ref=app If you have PC you can see the same code it works. Thanks in advance🙏

25th Aug 2020, 2:55 PM
v@msi😉
v@msi😉 - avatar
10 Answers
+ 3
Just solved, thanks rkk for giving your precious time🙏
25th Aug 2020, 3:56 PM
v@msi😉
v@msi😉 - avatar
+ 3
ᴉsɯ@ʌ🙃🙃 what changes you make?
25th Aug 2020, 3:57 PM
RKK
RKK - avatar
+ 2
ᴉsɯ@ʌ🙃🙃 no worries. 😇
25th Aug 2020, 4:00 PM
RKK
RKK - avatar
+ 1
overflow-x: hidden;
25th Aug 2020, 2:59 PM
RKK
RKK - avatar
+ 1
I just added another div tag made it position:absolute and overflow:hidden it works. I seen in previous questions, I forgot to use searchbar sorry😔rkk
25th Aug 2020, 3:59 PM
v@msi😉
v@msi😉 - avatar
+ 1
🙏👍🤗
25th Aug 2020, 4:01 PM
Divya Mohan
Divya Mohan - avatar
0
rkk no it doesn't works, I have already tried.
25th Aug 2020, 3:01 PM
v@msi😉
v@msi😉 - avatar
0
I think this is the problem In this code if p is not absolute is will hidden. But when you absolute the position of p tag it will not remain hidden. Note : If you make the position relative of div#box p tag will again will be hidden. https://code.sololearn.com/WEdAoCPh07Kj/?ref=app Please check this condition in your code if any...
25th Aug 2020, 3:56 PM
Divya Mohan
Divya Mohan - avatar
0
Thanks Divya Mohan now I got it
25th Aug 2020, 4:01 PM
v@msi😉
v@msi😉 - avatar