HTML Lesson 9: Centering HTML Elements

Key Points:

  • You can center HTML elements by using the wrapper property in a CSS Style Sheet.
    #wrapper{
    properties;
    ]
  • Once you have set it up in your CSS Style sheet you must give a div id of wrapper.
    <body>
    <div id=wrapper>
    content
    </div>
    </body>

View the Code!