How to Clear Floated Divs

104 8
    • 1). Open your Web page in a text editor by right-clicking on the file, then clicking "Open With." Click to select "Notepad" or "WordPad," then click "OK."

    • 2). Click to place your cursor on a blank line between the body HTML tags. The body tags are an opening "<BODY>" tag typically found near the top of the document and a closing "</BODY>" tag near the bottom of the document.

    • 3). Type "<div style='clear:[value];'>" on the blank line. Replace the "[value]" text with "left" to disallow DIV containers on the left side, or replace the "[value]" text with "right" to disallow DIV container on the right side. Replace the "[value]" with "both" to disallow DIV containers on both sides. Press "Enter."

    • 4). Type or paste the text, images or other contents to display in the DIV container. Press "Enter."

    • 5). Type "</div>" to close the DIV tag.

    • 6). Click the "File" menu, then click "Save" to save the Web page.

Source...
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.