{"id":2264,"date":"2017-03-01T22:54:50","date_gmt":"2017-03-01T22:54:50","guid":{"rendered":"http:\/\/cssreset.com\/?p=2264"},"modified":"2017-03-01T22:54:50","modified_gmt":"2017-03-01T22:54:50","slug":"7-css-snippets-for-food-lovers","status":"publish","type":"post","link":"https:\/\/cssdeck.com\/blog\/7-css-snippets-for-food-lovers\/","title":{"rendered":"7 CSS Snippets for Food Lovers"},"content":{"rendered":"<p>One of the most fun ways to use CSS is to create a delicious looking representation of your favorite types of food. If you&#8217;ve never seen this done before, you might be surprised at the amount of versatility that CSS provides &#8212; with it, it&#8217;s beyond easy to create your own replicas of things like ice cream and donuts that actually resemble the real thing. Take a look at the list below to see some of our favorite tutorials and snippets for making food out of CSS &#8212; just don&#8217;t read if you&#8217;re hungry!<\/p>\n<p>1. <a href=\"http:\/\/thecodeplayer.com\/walkthrough\/html-css-ice-cream-cone\" target=\"_blank\">HTML and CSS Ice Cream Cone<\/a><\/p>\n<p><a href=\"http:\/\/thecodeplayer.com\/walkthrough\/html-css-ice-cream-cone\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2265 aligncenter\" alt=\"Screen Shot 2017-03-01 at 9.50.15 AM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.50.15-AM.png\" width=\"452\" height=\"748\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.50.15-AM.png 452w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.50.15-AM-181x300.png 181w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.50.15-AM-180x297.png 180w\" sizes=\"(max-width: 452px) 100vw, 452px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>This pure CSS tutorial shows you how to make a delicious looking ice cream cone. The cone in question is filled with what looks to be strawberry or raspberry flavored ice cream, but don&#8217;t be afraid to get creative and change the code to make it resemble your favorite flavor.<\/p>\n<p>2. <a href=\"http:\/\/codepen.io\/daniellatodd\/pen\/WGRKZq\" target=\"_blank\">CSS Donut<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/daniellatodd\/pen\/WGRKZq\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2266 aligncenter\" alt=\"Screen Shot 2017-03-01 at 9.52.42 AM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.52.42-AM.png\" width=\"598\" height=\"488\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.52.42-AM.png 598w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.52.42-AM-300x244.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.52.42-AM-180x146.png 180w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Who doesn&#8217;t love donuts? This pink frosted donut (with sprinkles!!!) looks seriously good enough to eat.<\/p>\n<p>3. <a href=\"http:\/\/codepen.io\/hexagoncircle\/pen\/QyYWKj\" target=\"_blank\">Jumping Burger<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/hexagoncircle\/pen\/QyYWKj\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2267 aligncenter\" alt=\"Screen Shot 2017-03-01 at 9.54.54 AM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.54.54-AM.png\" width=\"448\" height=\"490\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.54.54-AM.png 448w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.54.54-AM-274x300.png 274w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.54.54-AM-180x196.png 180w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Not only does this cute little burger have a smiley face, but it also comes with the works (cheese, lettuce, tomato) AND it&#8217;s animated to do a little jump. If you prefer your food without a face, you can easily customize the code to get rid of that feature.<\/p>\n<p>4. <a href=\"http:\/\/codepen.io\/kevinjannis\/pen\/nGkKl\" target=\"_blank\">CSS Cupcake<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/kevinjannis\/pen\/nGkKl\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2268 aligncenter\" alt=\"Screen Shot 2017-03-01 at 9.58.19 AM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.58.19-AM.png\" width=\"338\" height=\"250\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.58.19-AM.png 338w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.58.19-AM-300x221.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.58.19-AM-180x133.png 180w\" sizes=\"(max-width: 338px) 100vw, 338px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>If these cupcakes were real, I think I&#8217;d eat about four of them. How cute is the cherry on top?<\/p>\n<p>5. <a href=\"http:\/\/thecodeplayer.com\/walkthrough\/leaky-coffee-mug\" target=\"_blank\">Leaky Coffee Mug<\/a><\/p>\n<p><a href=\"http:\/\/thecodeplayer.com\/walkthrough\/leaky-coffee-mug\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-2269 aligncenter\" alt=\"Screen Shot 2017-03-01 at 9.59.50 AM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.59.50-AM.png\" width=\"452\" height=\"582\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.59.50-AM.png 452w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.59.50-AM-232x300.png 232w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-9.59.50-AM-180x231.png 180w\" sizes=\"(max-width: 452px) 100vw, 452px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>CSS imitates life &#8212; the coffee mug you can create with this snippet has a pretty big leak\/spill, just like in real life!<\/p>\n<p>6. <a href=\"http:\/\/codepen.io\/dsmoore\/pen\/fiwAl\" target=\"_blank\">CSS3 Pizza<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/dsmoore\/pen\/fiwAl\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2270 aligncenter\" alt=\"Screen Shot 2017-03-01 at 10.01.23 AM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-10.01.23-AM-1024x365.png\" width=\"1024\" height=\"365\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-10.01.23-AM-1024x365.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-10.01.23-AM-300x107.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-10.01.23-AM-180x64.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-10.01.23-AM.png 1770w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Mmm, this pizza has cheese, pepperoni, mushrooms, and green peppers as toppings. If you&#8217;re not a fan of all of those, adjust the code to leave out your least favorites.<\/p>\n<p>7. <a href=\"http:\/\/codepen.io\/AngelaVelasquez\/pen\/yVEOpY\" target=\"_blank\">Pineapple Background<\/a><\/p>\n<p><a href=\"http:\/\/codepen.io\/AngelaVelasquez\/pen\/yVEOpY\"><img decoding=\"async\" loading=\"lazy\" class=\"size-large wp-image-2271 aligncenter\" alt=\"Screen Shot 2017-03-01 at 10.04.35 AM\" src=\"https:\/\/cssdeck.com\/blog\/\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-10.04.35-AM-1024x583.png\" width=\"1024\" height=\"583\" srcset=\"https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-10.04.35-AM-1024x583.png 1024w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-10.04.35-AM-300x170.png 300w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-10.04.35-AM-180x102.png 180w, https:\/\/cssdeck.com\/blog\/wp-content\/uploads\/2017\/02\/Screen-Shot-2017-03-01-at-10.04.35-AM.png 1050w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>If you&#8217;re looking for something more on the healthy side, might we suggest checking out this tutorial for making a background completely out of adorable little pineapples?<\/p>\n<div class=\"wp-socializer wpsr-share-icons \" data-lg-action=\"show\" data-sm-action=\"show\" data-sm-width=\"768\" ><h3>Share and Enjoy !<\/h3><div class=\"wpsr-si-inner\"><div class=\"wpsr-counter wpsrc-sz-32px\" style=\"color:#000\"><span class=\"scount\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook,twitter,linkedin,pinterest,print,pdf\">0<\/span><\/span><small class=\"stext\">Shares<\/small><\/div><div class=\"socializer sr-popup sr-32px sr-circle sr-opacity sr-pad sr-count-1 sr-count-1\"><span class=\"sr-facebook\"><a rel=\"nofollow\" href=\"https:\/\/www.facebook.com\/share.php?u=\" target=\"_blank\"  title=\"Share this on Facebook\"  style=\"color: #ffffff\" ><i class=\"fab fa-facebook-f\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"facebook\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-twitter\"><a rel=\"nofollow\" href=\"https:\/\/twitter.com\/intent\/tweet?text=%20-%20%20\" target=\"_blank\"  title=\"Tweet this !\"  style=\"color: #ffffff\" ><i class=\"fab fa-twitter\"><\/i><\/a><\/span>\n<span class=\"sr-linkedin\"><a rel=\"nofollow\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=\" target=\"_blank\"  title=\"Add this to LinkedIn\"  style=\"color: #ffffff\" ><i class=\"fab fa-linkedin-in\"><\/i><\/a><\/span>\n<span class=\"sr-pinterest\"><a rel=\"nofollow\" href=\"https:\/\/www.pinterest.com\/pin\/create\/button\/?url=&amp;media=&amp;description=\" target=\"_blank\"  title=\"Submit this to Pinterest\"  style=\"color: #ffffff\" data-pin-custom=\"true\"><i class=\"fab fa-pinterest\"><\/i><span class=\"ctext\"><span data-wpsrs=\"\" data-wpsrs-svcs=\"pinterest\">0<\/span><\/span><\/a><\/span>\n<span class=\"sr-print\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Print this article \"  style=\"color: #ffffff\" ><i class=\"fa fa-print\"><\/i><\/a><\/span>\n<span class=\"sr-pdf\"><a rel=\"nofollow\" href=\"https:\/\/www.printfriendly.com\/print?url=\" target=\"_blank\"  title=\"Convert to PDF\"  style=\"color: #ffffff\" ><i class=\"fa fa-file-pdf\"><\/i><\/a><\/span><\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>One of the most fun ways to use CSS is to create a delicious looking representation of your favorite types of food. If you&#8217;ve never seen this done before, you might be surprised at the amount of versatility that CSS [&#8230;]<\/p>\n<p><a class=\"more-link article\" href=\"https:\/\/cssdeck.com\/blog\/7-css-snippets-for-food-lovers\/\" title=\"Click to read '7 CSS Snippets for Food Lovers'\">Read Article<\/a><\/p>\n","protected":false},"author":18,"featured_media":2267,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2264"}],"collection":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/comments?post=2264"}],"version-history":[{"count":2,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2264\/revisions"}],"predecessor-version":[{"id":2273,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/posts\/2264\/revisions\/2273"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media\/2267"}],"wp:attachment":[{"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/media?parent=2264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/categories?post=2264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cssdeck.com\/blog\/wp-json\/wp\/v2\/tags?post=2264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}