Skip to content

Commit 4aa6283

Browse files
Update index.html
1 parent be3e72e commit 4aa6283

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

CSS Box Model/index.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,33 +68,22 @@ <h3> Values of Content's Properties:</h3>
6868
<hr>
6969
<!-- ************************************** Padding in CSS Box MOdel ***************************************** -->
7070
<div class="Padding">
71-
7271
<h3 class="h3">2. Padding in Box Model:-</h3>
73-
7472
<p class="para">Padding is the space between the content and the border.<br> It is always transparent (inherits the element's background color).</p>
75-
7673
<h3>Properties of Padding in Box Model in CSS:</h3>
77-
7874
<li><b>padding (shorthand):-</b> Sets inner spacing (inside border). Accepts 1-4 values.</li>
7975
<li><b>padding-top:-</b> Padding on the top side.</li>
8076
<li><b>padding-right:-</b> Padding on the right side.</li>
8177
<li><b>padding-bottom:-</b> Padding on the bottom side.</li>
8278
<li><b>padding-left:-</b> Padding on the left side.</li>
83-
8479
<h3><b>Note:-</b> Values can be in px, em, rem, %, etc</h3>
85-
8680
<li><b>padding:10px;</b> → all sides 10px.</li>
8781
<li><b>padding: 10px 20px;</b> → top/bottom 10px, left/right 20px.</li>
8882
<li><b>padding: 10px 20px 30px;</b> → top 10px, left/right 20px, bottom 30px.</li>
8983
<li><b> padding: 10px 20px 30px 40px;</b> → top, right, bottom, left.</li>
90-
9184
</div>
92-
9385
<hr>
94-
95-
9686
<!-- ************************************** Border in CSS Box MOdel ***************************************** -->
97-
9887
<div class="Border">
9988

10089
<h3 class="h3">3. Border in Box Model:-</h3>

0 commit comments

Comments
 (0)