Q:

CSS padding-left value of  is applied for only the first line

When I apply a padding-left style definition for a code tag as like the following:
<! DOCTYPE html>
<html>
<head>
<style>
  code {
    font-size: 20px;
    padding-left: 10px;
  }
</style>
</head>
<body>
<code>git pull origin master<br />
git push origin master
</code>
</body>
</html>

The result was like below.  That is, the padding-left style was applied for the first line only. 
Is this behavior as HTML5/CSS specification?  To apply the padding for all lines, should NOT I use the padding-left? 

A:

<code> is an  inline element, so you need to change it into display:block/inline-block to achive that

code {
  display: inline-block;
  font-size: 20px;
  padding-left: 10px;
}
<code>git pull origin master<br />
git push origin master
</code>

