How to make padding? [duplicate]











up vote
0
down vote

favorite













This question already has an answer here:




  • CSS display: inline vs inline-block [duplicate]

    1 answer



  • What is the difference between display: inline and display: inline-block?

    4 answers




I have next HTML:



<div>
<b>Text</b>
<br>next line
</div>


I try to make padding after first line, but neither work:



div > :first-child {
margin-bottom: 0.5em;
}


div > :first-child {
padding-bottom: 0.5em;
}


How to make padding after first line?










share|improve this question















marked as duplicate by LGSon html
Users with the  html badge can single-handedly close html questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 1




    Make it (the <b>) display: inline-block ... or display: block and you can get rid of the <br>
    – LGSon
    yesterday












  • @LGSon: Create the answer I will accept it
    – Eugen Konkov
    yesterday












  • Linked it instead, as those answers are as good as it gets :)
    – LGSon
    yesterday

















up vote
0
down vote

favorite













This question already has an answer here:




  • CSS display: inline vs inline-block [duplicate]

    1 answer



  • What is the difference between display: inline and display: inline-block?

    4 answers




I have next HTML:



<div>
<b>Text</b>
<br>next line
</div>


I try to make padding after first line, but neither work:



div > :first-child {
margin-bottom: 0.5em;
}


div > :first-child {
padding-bottom: 0.5em;
}


How to make padding after first line?










share|improve this question















marked as duplicate by LGSon html
Users with the  html badge can single-handedly close html questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 1




    Make it (the <b>) display: inline-block ... or display: block and you can get rid of the <br>
    – LGSon
    yesterday












  • @LGSon: Create the answer I will accept it
    – Eugen Konkov
    yesterday












  • Linked it instead, as those answers are as good as it gets :)
    – LGSon
    yesterday















up vote
0
down vote

favorite









up vote
0
down vote

favorite












This question already has an answer here:




  • CSS display: inline vs inline-block [duplicate]

    1 answer



  • What is the difference between display: inline and display: inline-block?

    4 answers




I have next HTML:



<div>
<b>Text</b>
<br>next line
</div>


I try to make padding after first line, but neither work:



div > :first-child {
margin-bottom: 0.5em;
}


div > :first-child {
padding-bottom: 0.5em;
}


How to make padding after first line?










share|improve this question
















This question already has an answer here:




  • CSS display: inline vs inline-block [duplicate]

    1 answer



  • What is the difference between display: inline and display: inline-block?

    4 answers




I have next HTML:



<div>
<b>Text</b>
<br>next line
</div>


I try to make padding after first line, but neither work:



div > :first-child {
margin-bottom: 0.5em;
}


div > :first-child {
padding-bottom: 0.5em;
}


How to make padding after first line?





This question already has an answer here:




  • CSS display: inline vs inline-block [duplicate]

    1 answer



  • What is the difference between display: inline and display: inline-block?

    4 answers








html css






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday









Nick Parsons

2,0682518




2,0682518










asked yesterday









Eugen Konkov

5,41833659




5,41833659




marked as duplicate by LGSon html
Users with the  html badge can single-handedly close html questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by LGSon html
Users with the  html badge can single-handedly close html questions as duplicates and reopen them as needed.

StackExchange.ready(function() {
if (StackExchange.options.isMobile) return;

$('.dupe-hammer-message-hover:not(.hover-bound)').each(function() {
var $hover = $(this).addClass('hover-bound'),
$msg = $hover.siblings('.dupe-hammer-message');

$hover.hover(
function() {
$hover.showInfoMessage('', {
messageElement: $msg.clone().show(),
transient: false,
position: { my: 'bottom left', at: 'top center', offsetTop: -7 },
dismissable: false,
relativeToBody: true
});
},
function() {
StackExchange.helpers.removeMessages();
}
);
});
});
yesterday


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 1




    Make it (the <b>) display: inline-block ... or display: block and you can get rid of the <br>
    – LGSon
    yesterday












  • @LGSon: Create the answer I will accept it
    – Eugen Konkov
    yesterday












  • Linked it instead, as those answers are as good as it gets :)
    – LGSon
    yesterday
















  • 1




    Make it (the <b>) display: inline-block ... or display: block and you can get rid of the <br>
    – LGSon
    yesterday












  • @LGSon: Create the answer I will accept it
    – Eugen Konkov
    yesterday












  • Linked it instead, as those answers are as good as it gets :)
    – LGSon
    yesterday










1




1




Make it (the <b>) display: inline-block ... or display: block and you can get rid of the <br>
– LGSon
yesterday






Make it (the <b>) display: inline-block ... or display: block and you can get rid of the <br>
– LGSon
yesterday














@LGSon: Create the answer I will accept it
– Eugen Konkov
yesterday






@LGSon: Create the answer I will accept it
– Eugen Konkov
yesterday














Linked it instead, as those answers are as good as it gets :)
– LGSon
yesterday






Linked it instead, as those answers are as good as it gets :)
– LGSon
yesterday



















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Florida Star v. B. J. F.

Error while running script in elastic search , gateway timeout

Adding quotations to stringified JSON object values