Issue
Here's my HTML code in a markdown editor:
<div>
This is some text
<emb>Reference:<emb>
<ol>
<li><i>Reference link #1</i></li>
<li><i>Reference link #2</i></li>
</ol>
</div>
This is some text.
<style>
emb {
font-weight: 500;
background: transparent;
font-size: 18px
}
</style>
It produces result as below:
What causes this space?
Solution
Margins of elements. You can use CSS to remove them like this:
<p style="margin-bottom: 0;"> <emb> Reference: </emb> </p>
and on ol
<ol style="margin-top: 0;">
I had to remove both margins on <p> and on <ol> to remove the space
You can also use inspect element on browsers to see the answer.
Answered By - Antonio

0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.