Overflow:hidden is not working(body)[solved] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
25th Aug 2020, 3:57 PM
Rohit
25th Aug 2020, 4:00 PM
Rohit
+ 1
overflow-x: hidden;
25th Aug 2020, 2:59 PM
Rohit
+ 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