-2

I don't know how to articulate this properly so I've attached an image.

The only way I've been able to implement this is with a background image in the body eg: https://www.pro-hyd.co.za/hydraulic-pumps.php

Layout example.

Question: Is there a way to do this using HTML and CSS, without the need for a background image?

pentester
  • 11
  • 3

1 Answers1

-1

You can easily do this with a flexbox.

.wrapper {
  display: flex;
  width: 100%;
  height: 100vh;
}

.main {
  background-color: seagreen;
  width: 60%;
  color: white;
}
<div class="wrapper">
  <div class="main">Main Content</div>
  <div class="sidebar">Sidebar</div>
</div>
Gerard
  • 15,418
  • 5
  • 30
  • 52