{"componentChunkName":"component---src-templates-blog-post-js","path":"/blog/freecodecamp/frontend/css/fcc-challenge-19-add-rounded-corners-with-a-border-radius/","result":{"data":{"site":{"siteMetadata":{"title":"Be Brav3"}},"markdownRemark":{"id":"6c011e5d-1130-5e33-865e-31265dba26da","excerpt":"In Free Code Camp Challenge 19 we can round out the corners by using border radius: css h2 { font-family: Lobster, Monospace; } p { font-size: 16px; font-family…","html":"<p>In <a href=\"https://www.freecodecamp.com/challenges/add-rounded-corners-with-a-border-radius\">Free Code Camp Challenge 19</a> we can round out the corners by using border radius:</p>\n<p>[css]</p>\n<link href=\"https://fonts.googleapis.com/css?family=Lobster\" rel=\"stylesheet\" type=\"text/css\">\n  \n<style>\n    \n.red-text {\n      \ncolor: red;\n    \n}\n<p>h2 {</p>\n<p>font-family: Lobster, Monospace;</p>\n<p>}</p>\n<p>p {</p>\n<p>font-size: 16px;</p>\n<p>font-family: Monospace;</p>\n<p>}</p>\n<p>.thick-green-border {</p>\n<p>border-color: green;</p>\n<p>border-width: 10px;</p>\n<p>border-style: solid;</p>\n<p>}</p>\n<p>.smaller-image {</p>\n<p>width: 100px;</p>\n<p>}</p>\n</style>\n<h2 class=\"red-text\">CatPhotoApp</h2>\n<img class=\"smaller-image thick-green-border\" src=\"https://bit.ly/fcc-relaxing-cat\" alt=\"A cute orange cat lying on its back. \">\n<p class=\"red-text\">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>\n  \n<p class=\"red-text\">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>\n  \n[/css]\n<p>The updated code should look like:</p>\n<p>[css]</p>\n<link href=\"https://fonts.googleapis.com/css?family=Lobster\" rel=\"stylesheet\" type=\"text/css\">\n  \n<style>\n    \n.red-text {\n      \ncolor: red;\n    \n}\n<p>h2 {</p>\n<p>font-family: Lobster, Monospace;</p>\n<p>}</p>\n<p>p {</p>\n<p>font-size: 16px;</p>\n<p>font-family: Monospace;</p>\n<p>}</p>\n<p>.thick-green-border {</p>\n<p>border-color: green;</p>\n<p>border-width: 10px;</p>\n<p>border-style: solid;</p>\n<p>border-radius: 10px;</p>\n<p>}</p>\n<p>.smaller-image {</p>\n<p>width: 100px;</p>\n<p>}</p>\n</style>\n<h2 class=\"red-text\">CatPhotoApp</h2>\n<img class=\"smaller-image thick-green-border\" src=\"https://bit.ly/fcc-relaxing-cat\" alt=\"A cute orange cat lying on its back. \">\n<p class=\"red-text\">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>\n  \n<p class=\"red-text\">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>\n  \n[/css]\n<blockquote>\n<p>Your cat photo currently has sharp corners. We can round out those corners with a CSS property called border-radius.</p>\n<p>You can specify a border-radius with pixels. Give your cat photo a border-radius of 10px.</p>\n<p>Note: this waypoint allows for multiple possible solutions. For example, you may add border-radius to either the .thick-green-border class or .smaller-image class.</p>\n</blockquote>","frontmatter":{"title":"FCC Challenge 19: Add Rounded Corners with a Border Radius","date":"March 07, 2016","description":null}}},"pageContext":{"slug":"/blog/freecodecamp/frontend/css/fcc-challenge-19-add-rounded-corners-with-a-border-radius/","previous":{"fields":{"slug":"/blog/freecodecamp/frontend/css/fcc-challenge-18-add-borders-around-your-elements/"},"frontmatter":{"title":"FCC Challenge 18: Add Borders Around Your Elements"}},"next":{"fields":{"slug":"/blog/freecodecamp/frontend/css/fcc-challenge-20-make-circular-images-with-a-border-radius/"},"frontmatter":{"title":"FCC Challenge 20: Make Circular Images with a Border Radius"}}}}}