8 Replies
Tok124 (CSS Nerd)
Tok124 (CSS Nerd)ā€¢9mo ago
First of all, you should not set width:100%; on divs, divs are block elements, they already take full width. and you should not do height:100%; on all elements, learn how to use flexbox. https://codepen.io/tok124/pen/GRLddrK
Tim
CodePen
GRLddrK
...
WiperR
WiperROPā€¢9mo ago
Yeah I know flexbox, but can't be achieve this with regular heights, I am just trying out different approaches
Tok124 (CSS Nerd)
Tok124 (CSS Nerd)ā€¢9mo ago
Why not use the way i made it? Why would you want height:100%; ?
WiperR
WiperROPā€¢9mo ago
No, I mean I use flexbox all the time for layouts like these, but I was just curious what people used to do before flexbox.
Tok124 (CSS Nerd)
Tok124 (CSS Nerd)ā€¢9mo ago
I think tables šŸ˜‚
WiperR
WiperROPā€¢9mo ago
Lol are u sure šŸ˜‚ I better stick with flexbox then
Tok124 (CSS Nerd)
Tok124 (CSS Nerd)ā€¢9mo ago
Depends on what kind of layout you were going for. But if i wanted something like this and i did not have flexbox or grid. I would most likely use a table ^^
WiperR
WiperROPā€¢9mo ago
Thank you. That's all I needed to know
Want results from more Discord servers?
Add your server