{"componentChunkName":"component---src-templates-blog-post-js","path":"/blog/freecodecamp/frontend/css/fcc-challenge-20-make-circular-images-with-a-border-radius/","result":{"data":{"site":{"siteMetadata":{"title":"Be Brav3"}},"markdownRemark":{"id":"ed12127b-267a-5ca9-885d-a9ba5d17f319","excerpt":"In Free Code Camp Challenge 20 we need to change the CSS border radius from px to % in order to display the image as a circle: css h2 { font-family: Lobster…","html":"<p>In <a href=\"https://www.freecodecamp.com/challenges/make-circular-images-with-a-border-radius\">Free Code Camp Challenge 20</a> we need to change the CSS border radius from px to % in order to display the image as a circle:</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<p>The finished 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: 50%;</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>In addition to pixels, you can also specify a border-radius using a percentage.</p>\n<p>Give your cat photo a border-radius of 50%.</p>\n</blockquote>","frontmatter":{"title":"FCC Challenge 20: Make Circular Images with a Border Radius","date":"March 07, 2016","description":null}}},"pageContext":{"slug":"/blog/freecodecamp/frontend/css/fcc-challenge-20-make-circular-images-with-a-border-radius/","previous":{"fields":{"slug":"/blog/freecodecamp/frontend/css/fcc-challenge-19-add-rounded-corners-with-a-border-radius/"},"frontmatter":{"title":"FCC Challenge 19: Add Rounded Corners with a Border Radius"}},"next":{"fields":{"slug":"/blog/selenium/how-to-install-java-and-selenium-webdriver/"},"frontmatter":{"title":"How to Install Java and Selenium WebDriver"}}}}}