[Solved] Unexpected gap at the top of content in HTML | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

[Solved] Unexpected gap at the top of content in HTML

A large gap appears in the top of my web page, please check it and help. Image link: https://www.sololearn.com/post/538929/?ref=app(See on desktop site, mobile site is customized) Code link: https://codepen.io/BibekOli/pen/XWdzvZV Or, https://code.sololearn.com/WXnxpRuCsGK5/?ref=app

5th Sep 2020, 8:11 AM
Bibek Oli
Bibek Oli - avatar
7 Answers
5th Sep 2020, 10:24 AM
Rei
Rei - avatar
+ 7
Change margin-top .responsive-ad { margin-top: 0px; padding:0px; background: black; color: white; text-align: center; }
5th Sep 2020, 8:16 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
inside sidebar vertical-align: top;
5th Sep 2020, 8:48 AM
Rei
Rei - avatar
+ 1
@Rei have you used vertical-align recently bcz I think it don't work now. You might have used it with line-height. Correct me if I mistaken.
5th Sep 2020, 10:03 AM
Divya Mohan
Divya Mohan - avatar
+ 1
Bibek Oli Used css grid/flexbox for making 2cloumn or 3 column layout. It is developed for this purpose and had no such problem. Beleive me it will ease layout structure practising .
5th Sep 2020, 10:06 AM
Divya Mohan
Divya Mohan - avatar
+ 1
Rei Divya Mohan thank you.☺️
5th Sep 2020, 2:52 PM
Bibek Oli
Bibek Oli - avatar
0
ཞıɬıƙą ɱıʂɧཞą yes, I have kept that that gap for header, the gap I was talking about is of sidebar, check this screenshot https://www.sololearn.com/post/538929/?ref=app
5th Sep 2020, 8:20 AM
Bibek Oli
Bibek Oli - avatar