Press "Enter" to skip to content

Borders Examples in CSS

Last updated on October 5, 2019

Definition :

Which is meant for when we have to give the background color to the content.

Program :


     <style type=”text/css”>




                                 border: 5px solid red;

                                 border: 5px dashed red;

                                 border: 5px dotted red;

                                 border: 5px none red;

                                 border: 5px double red;


                                 border: 5px double red;

                                 width: 500px;

                                 height: 500px;




                     <div> Hello </div>



Be First to Comment

    Leave a Reply

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