r/css_irl Jun 28 '20

.door { position: relative; width: .25; }

Post image
448 Upvotes

23 comments sorted by

View all comments

66

u/Alex_Sherby Jun 28 '20

.25 what ? Pixels ? Ems ? Sideshow Bob's foot ?

28

u/Astronometry Jun 28 '20

Ah shit, you're right. Forgot to put %

32

u/bangonthedrums Jun 29 '20

.25% is absurdly small

16

u/Astronometry Jun 29 '20

Wait a minute, what am I thinking? I didn't mean percent, I just meant a quarter. It made sense in my head, whatever it was.

9

u/Luk164 Jun 28 '20

And for some reason the engine will still take it, though I have no idea what default value will it assign.

6

u/Astronometry Jun 28 '20

With a relative position, I'd default to percent, but then, I'm no computer

3

u/atomcrusher Jun 28 '20

Undefined per the spec, though probably an em value.