Margin Examples in CSS

Definition :

Which is meant for to create an external space for the webpage.

Program :


     <style type=”text/css”>



                                  color: red;

                                  width: 100px;

                                  height: 100px;

                                  background-color: green;

                                  border-radius: 10px;

                                  text-align: center;

                                  font-size: 20px;

                                  margin-left: 100px;

                                  margin-top: 100px;

                                  margin-bottom: 100px;

                                  margin-right: 100px;




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

                                 <p> A </p>



Leave a Reply

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