خرید بک لینک

Vote count: 0

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?

enter image description here

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 25 اسفند 1394 ساعت: 4:31

صفحه بندی