Press "Enter" to skip to content

Position Examples in CSS

Last updated on October 5, 2019

Definition :

      The position property specifies the type of positioning method used for an element (static, relative, absolute, fixed, or sticky).

Program :


     <style type=”text/css”>



                                   color: blue;




                                   position: relative;




                     <table border=”1″ bordercolor=”red” width=”100″ height=”100″>


                                                     <td> Hello </td>

                                                                 <td id=”Second”> HI </td>





Be First to Comment

    Leave a Reply

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