Business & Finance Stocks-Mutual-Funds

How to Use Margins Instead of Floats

    • 1). Open your HTML document in an editor, such as Windows Notepad.

    • 2). Create the CSS code for margins by adding the following code within the <head> section of your HTML file:

      .mymargin { margin: 50px 0px 0px 40px; }

      The "." character at the beginning of the line indicates a class selector, which can be used on multiple elements. The "margin" property will set a 50px margin on the top, a 0px margin on the right, a 0px margin on the bottom and a 40px margin to the left of the element.

    • 3). Add the following the HTML code within the <body> section of your file:

      <p>First paragraph.</p>
      <p class="mymargin">Second paragraph.</p>

      This creates 50px of empty space between the two paragraphs vertically. It also sets 50px of space between the second paragraph and the left side of the page.

    • 4). Save the HTML file and upload it to your Web server. Refresh the page to view the new margins.

Related posts "Business & Finance : Stocks-Mutual-Funds"

How to Calculate Maturity of United States Savings Bonds Series EE

Stocks-Mutual-Funds

How Automated Stock Trading Software Helps You!

Stocks-Mutual-Funds

Stock Trading - How to Avoid Losing All Your Money

Stocks-Mutual-Funds

How to Get Live Feed From Stock Market Websites

Stocks-Mutual-Funds

How to Create a List of Dividend Paying Stocks

Stocks-Mutual-Funds

The Best Free Stock Market Sites

Stocks-Mutual-Funds

Make Money Online Through Stocks Trading

Stocks-Mutual-Funds

Share Market Training in Hyderabad

Stocks-Mutual-Funds

What Is a Stock Warrant?

Stocks-Mutual-Funds

Leave a Comment