Day 1 challenge
I have been studying html and css since last few months. Today was the first day I thought of doing something else. And so I choosed the first challenge from the "Web Development Course" by Apna College. Now I wrote the html structure. First there was a heading and the next line was inside paragraph tags. The paragraph was of a single line and was very short. I needed to reduce the vertical space between the heading and the paragraph which made me mad, that whatever I studied about html and css i couldn't recall it. I used line-height, but it didn't worked. Also tried to put 0px margin and 0px padding for both the heading and paragraph, but it didn't. Finally, got help from "Carewen" on stack overflow. For the heading used "margin-bottom: 0px; and for the paragraph used "margin-top: 0px;. It worked perfectly. Thank you Carewen and stack overflow.
Subscribe to my newsletter
Read articles from Birinchi Bania directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by