Padding Examples in CSS

Definition :

Which is meant for providing the space for the content on the web page.

Program :


     <style type=”text/css”>



                                  color: red;

                                  width: 100px;

                                  height: 100px;

                                  background-color: green;

                                  border-radius: 10px;

                                  text-align: center;

                                  font-size: 20px;

                                  padding-left: 100px;

                                  padding-up: 100px;

                                  padding-down: 100px;

                                  padding-right: 100px;




                     <p id=”First”> HI </p>

                                 <p> A </p>



Leave a Reply

Your email address will not be published. Required fields are marked *