How to make padding? [duplicate]

Multi tool use
Multi tool use











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

zzhS7UwdoFfzQDJkWv4CL8YTHPeqSBpeekUYdi1IBgntlX mnT8TLDLM1TR6m P hjicFzRqPVbh,xLRtY8DEqYyVILK4jgFnYN
S1m,WgJoHU

Popular posts from this blog

Florida Star v. B. J. F.

Danny Elfman

The Sandy Post