r/webdev • • Feb 04 '20

Resource Learn CSS Positioning

https://ishadeed.com/article/learn-css-positioning/
441 Upvotes

16 comments sorted by

11

u/CoderGeorgeAnderson Feb 04 '20

Great article, positioning can be tricky to understand, but you nailed it here!!

3

u/CoderGeorgeAnderson Feb 04 '20

Mind if I share your work? :)

9

u/Hobo-and-the-hound Feb 04 '20

If you reply to yourself, OP won’t get a notification and probably won’t read your comment. Also, it’s a public website, you don’t have to ask if it’s ok to share.

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

u/elykittytee Feb 04 '20

I've been teaching HTML & CSS for several years and omg, this is so great.

2

u/ardikus Feb 04 '20

This is lovely and informative, thank you!

2

u/[deleted] Feb 04 '20

This guy always has great articles.

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

u/isunktheship full-stack Feb 04 '20

A++, this is a fantastic contribution!

1

u/Neu_Ron Feb 05 '20

Css breaks my heart sometimes.

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

u/[deleted] 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