0

Is it possible to have this slanted right-hand sidebar layout with CSS? The left side would be the main content where I assume the slanted sidebar layout could overlap the extra.

I've asked this question before but don't think a fixed pixel height border will do the trick to achieve the layout. Is there any other way? Something more flexible?

slanted layout

blkedy
  • 1,243
  • 2
  • 13
  • 19

1 Answers1

1

You can use diagonal linear gradient backgrounds with color stops to get that effect, e.g. linear-gradient(to bottom right, #1e5799, #1e5799 50%, #207cca 50%, #207cca);. Here's an example.

Ryan Mitchell
  • 754
  • 5
  • 8