Your example #2 (divide page into parts) won't work in Safari. There's no need to hack around with 100% width, there ape specific flexbox properties for that - flex-grow and/or flex-basis:
.content {
width: 50%;
flex-grow: 1;
}
.content {
width: 50%;
flex-basis: 50%;
}
Also, this is actually the case when grid would be better / simpler / easier:
Your example #2 (divide page into parts) won't work in Safari. There's no need to hack around with 100% width, there ape specific flexbox properties for that - flex-grow and/or flex-basis:
Also, this is actually the case when grid would be better / simpler / easier:
Why not "grid-template-columns: 1fr 1fr"? This will produce the same right?
Correct, I usually use fraction unit too.
Thanks for your addition! I edited the post!
It turns out that using flex-basis won't work with images. But it is fine on other tags