As I work on my first electron app, I've created the initial layout. My goal is to have elements resize when the user adjusts the window size:
- The red part should change in both width and height
- The blue part should only adjust in height, not width
- The green part should only adjust in width, not height
In .NET WinForms, this would be a simple task:
- Set anchors for the red element to Left, Top, Right, Bottom
- Anchor the blue element to Top, Right, Bottom
- And anchor the green element to Left, Right, Bottom
How can I achieve this same effect using HTML and CSS?
I'm considering using a table element, but I've heard that tables are not recommended for page layout.