Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Basics (2014) Enhancing the Design With CSS Border Radius

Weird bug with typo causes radius to occur in the center of the box edge, not the corner of the box. What causes this?

I noticed that when I made a typo while following this video it caused a indent to occur in the middle of the edge, instead of either end.

This seems like a bug, but could be quite a need feature if it was created intentionally.

This was in Chrome using Atom code editor.

Any ideas what caused it and if it can be used reliably in production?

Notice I typed 50p[ instead of 50px and I got the curve above the bear

http://i.imgur.com/Z8Dqj1N.png

2 Answers

Okay, I'm an idiot.

That code obviously screwed with the sizing of the svg arrow, and it was the tip of the arrow overtaking the page.

I'll go back to my cave now and stop asking silly questions.

http://i.imgur.com/fKbUvwO.png

No worries. No such thing as a silly question. In fact the best is when you figure the question out yourself!!

Yeah, thanks :)

I just thought I'd discovered some really crazy bug that allowed you do shift a border radius to take effect form a new position.

Nope, just an massive SVG arrow tip screwing with my head :D