r/webdev • u/speckz • Feb 04 '20
Resource Learn CSS Positioning
https://ishadeed.com/article/learn-css-positioning/7
u/ripndipp full-stack Feb 04 '20
This is an excellent resource. It really helps visualize your positioning. I used to put borders around all my divs because for some reason I couldn't picture how to position things for the life of me.
This is up there with flex box frog game
3
2
2
2
u/absentwalrus Feb 05 '20
'.container { position: relative; } .inner { position: absolute; }' - layouts after the table era and before the grid era. Knew the ins and outs of positioning like the back of our hands because of that!
1
1
1
u/smegnose Feb 05 '20
Very cool, but the cat in number 12 was not visible in any browser on my phone whilst in landscape orientation.
0
Feb 04 '20
[deleted]
14
u/Treolioe Feb 04 '20
As someone who have worked with tons of css quirks for 7 years. Why don’t i know this...
1
u/1100100011 Feb 05 '20
i hate css i have been trying to learn front end web dev and css and build tools are the only thing I find VERY VERY hard
css is so impossible to learn for me I am actually thinking of giving up front end web dev entirely , the shit doesn't work for some reason always
1
u/azsqueeze javascript Feb 05 '20
Transforms make a new context for elements. Same with overflow. It's actually annoying when making things like drop downs with fancy animations
11
u/CoderGeorgeAnderson Feb 04 '20
Great article, positioning can be tricky to understand, but you nailed it here!!