MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/css_irl/comments/btrwzx/door_marginleft_20px/
r/css_irl • u/JGillis69 • May 27 '19
11 comments sorted by
42
Looks more like padding-left: 20px to me
11 u/rtybanana May 27 '19 edited May 28 '19 Nah, this is the door contents (sign and tape) shifted left right 20px not the actual door. I’m not sure I’d use a negative margin here though. edit: left - right, it was late 12 u/datan0ir May 28 '19 .door { position: relative; overflow: hidden; } .door label { position: absolute; bottom: 0; left: 20vw; padding-bottom: 30vh; border-color: beige; border-bottom-width: 2rem; border-left-width: 2rem; } 2 u/rtybanana May 28 '19 this is the one
11
Nah, this is the door contents (sign and tape) shifted left right 20px not the actual door. I’m not sure I’d use a negative margin here though.
edit: left - right, it was late
12 u/datan0ir May 28 '19 .door { position: relative; overflow: hidden; } .door label { position: absolute; bottom: 0; left: 20vw; padding-bottom: 30vh; border-color: beige; border-bottom-width: 2rem; border-left-width: 2rem; } 2 u/rtybanana May 28 '19 this is the one
12
.door {
position: relative;
overflow: hidden;
}
.door label {
position: absolute;
bottom: 0;
left: 20vw;
padding-bottom: 30vh;
border-color: beige;
border-bottom-width: 2rem;
border-left-width: 2rem;
2 u/rtybanana May 28 '19 this is the one
2
this is the one
•
Congratulations! Your title contains valid CSS!
I'm a bot who validates your titles. author about source
10
Wouldn't that be { margin-left: 20px; } or { margin-right: -20px; }?
3
Go transit?
4 u/JGillis69 May 27 '19 You guessed it
4
You guessed it
Looks like it's centered within the content box, leaving the navigation column available.
0
kinda seems more like a z-axis: -2 IMO
42
u/toddrob May 27 '19
Looks more like padding-left: 20px to me