I am trying to get a flexbox
with two columns, the left one that has a fixed width and the right one that scales when the page is resized. For instance:
<style> .flex_container { display: flex; width: 100%; } .flex_col_left { width: 200px; } .flex_col_right { width: 85%; } </style> <div class = "flex_container"> <div class = "flex_col_left"> ..... </div> <div class = "flex_col_right"> ..... </div> <div>
This works to some extent, but it doesn't seem right, as I mix px and%. Is it wrong to do so, and if so, what could be the best solution?
The issue with EDIT class names was a typo and now fixed.
source share