How to Remove a Padding Border From the Body

104 14
  • 1). Right-click the CSS file that contains your HTML class and select "Open With." If your CSS classes are directly in the HTML file, right-click the HTML file instead. Click your preferred editor software in the Open With sub-menu.

  • 2). Locate the body CSS class. If you have your classes set in the HTML tags, scroll down to the body tag in your page code.

  • 3). Remove the padding definition. For instance, the following code is a CSS class that sets the body's padding parameters:

    body

    {

    padding: 3px;

    }

    In this example, you can delete the entire class. If you have other styles set in the body class, only delete the "padding" line item and leave the rest of the code intact.

  • 4). Save the changes and open the new Web page in a browser. Review the latest settings for the HTML file to verify the removal of the padding style.

Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.