Source Code:
This div occupies the left half.
This div occupies the right half.
Result:
W3Schools.com
- Try it yourself