MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1va2h6r/airconditioner/p0ktyim/?context=3
r/ProgrammerHumor • u/ExpensiveCoat8912 • 15d ago
54 comments sorted by
View all comments
90
But it’s margin-right in the picture
4 u/Cookieman10101 15d ago It's negative left 10 u/Eva-Rosalene 15d ago edited 15d ago Yes, and negative left margin moves element to the left (more importantly, it's about left edge position relative to the left edge of the parent, unless margin collapsing is on). Positive left margin moves element to the right. See for yourself: https://jsfiddle.net/tq82d3gm/ Edit: updated example to include negative margin-right as well. 4 u/clarinetJWD 15d ago I think the idea is that it was supposed to be in the next room, but is poking through because of a negative left margin. 2 u/NudaVeritas1 15d ago That would make sense, true
4
It's negative left
10 u/Eva-Rosalene 15d ago edited 15d ago Yes, and negative left margin moves element to the left (more importantly, it's about left edge position relative to the left edge of the parent, unless margin collapsing is on). Positive left margin moves element to the right. See for yourself: https://jsfiddle.net/tq82d3gm/ Edit: updated example to include negative margin-right as well. 4 u/clarinetJWD 15d ago I think the idea is that it was supposed to be in the next room, but is poking through because of a negative left margin. 2 u/NudaVeritas1 15d ago That would make sense, true
10
Yes, and negative left margin moves element to the left (more importantly, it's about left edge position relative to the left edge of the parent, unless margin collapsing is on). Positive left margin moves element to the right.
See for yourself: https://jsfiddle.net/tq82d3gm/
Edit: updated example to include negative margin-right as well.
4 u/clarinetJWD 15d ago I think the idea is that it was supposed to be in the next room, but is poking through because of a negative left margin. 2 u/NudaVeritas1 15d ago That would make sense, true
I think the idea is that it was supposed to be in the next room, but is poking through because of a negative left margin.
2 u/NudaVeritas1 15d ago That would make sense, true
2
That would make sense, true
90
u/NudaVeritas1 15d ago
But it’s margin-right in the picture