1

I have created Two Equal Columns on the page, I don't want to use Internal CSS. So that, I add box-sizing: border-box; in the inline CSS, below is my coding:

<h2>Two Equal Columns</h2>

<div class="row" style="box-sizing: border-box;">
  <div class="column" style="float: left;width: 50%;padding: 10px;height: 300px;">
    <h2>Column 1</h2>
    <p>Some text..</p>
  </div>
  <div class="column" style="float: left;width: 50%;padding: 10px;height: 300px;">
    <h2>Column 2</h2>
    <p>Some text..</p>
  </div>
</div>

But the result is shown like below:

output

Actually, I want the output like below:

result

Hope someone can guide me on how to solve this problem. Thanks.

David Holly
  • 373
  • 1
  • 9

0 Answers0