I don't get it. Why is there so much space between "title" and "text"? Please take a look at this code:
<h3 style="background:#000">Title</h3>
<p class="d" style="background:#000">
Text Text Text Text Text Text Text Text Text Text Text
</p>
There are absolutely no other styles applied to those two elements, but still, there are so much unused space. Anyone have an idea here?
Shift + Enter will force a break within a paragraph tag to give the appearance of single line spacing. Under a heading tag it will create a new paragraph tag that is subject to the css spacing rules.
Set your cursor to the location of the paragraph spacing. Click on the Line and Paragraph Spacing icon in the Home Ribbon. Select "Remove Extra Space" to remove the extra space.
Go to Layout, and under Spacing, click the up or down arrows to adjust the distance before or after the paragraph. You can also type a number directly.
Just set margin:0 in your h1 tag. Save this answer.
The caption tags (<h1>
, <h2>
, ...) have a default padding and margin applied to them.
The same is for the paragraph <p>
If you want to remove those default spacing add the following style to the captions and paragraphs inside your css or element:
padding: 0; margin: 0;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With