-
Notifications
You must be signed in to change notification settings - Fork 400
/
index.html
27 lines (26 loc) · 1.08 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Page title</title>
<meta name="viewport" content="initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/sindresorhus/github-markdown-css@4.0.0/github-markdown.css">
</head>
<body class="markdown-body">
<h1 id="padding-in-css">Padding in css</h1>
<p>Padding is the property which defines the how many area inside the element will not be usable for inner content.</p>
<h2 id="effects-of-padding">Effects of padding</h2>
<p>after adding the padding property to the element , the size of element increases as much as padding size.</p>
<h2 id="where-its-useful">Where it's useful</h2>
<p>in the elements like button , input etc. , padding helps to increase the size of element so the text inside element looks good.</p>
<h2 id="how-to-apply">How to apply</h2>
<p>in css</p>
<pre><code class="language-css">element{
padding:2px;
}
</code></pre>
<p>in html</p>
<pre><code class="language-html"><element style="padding:5px">the text</element>
</code></pre>
</body>
</html>