but this is working
Hello world
JavaScript and Java this is not working
This is suppose to take a new paragraph like the Hello world header but its not working
It is much better to paste your actual code in here instead of giving us pictures of code, but I’ll try my best.
I’m assuming you have a bottom margin set on the p
element. Since the “Hello world” header follows a p
element then the bottom margin on the p
element is separating them. In the first example, the “JavaScript and Java” header comes after a list (which by the way is missing a closing list tag). I’m guessing the list doesn’t have a bottom margin and thus there is no space between it and the heading.
Probably the best way to solve this is to add a top margin to the header so that you always have some space above the header.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.