{"id":4686,"date":"2017-06-05T10:54:35","date_gmt":"2017-06-05T10:54:35","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=4686"},"modified":"2026-03-09T19:20:06","modified_gmt":"2026-03-09T19:20:06","slug":"css-cheat-sheet","status":"publish","type":"post","link":"\/ng\/tutorials\/css-cheat-sheet","title":{"rendered":"CSS cheat sheet \u2013 the complete PDF for beginners and professionals"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>CSS is a website design language that you can use to add background, colors, and even transitions or other interactive elements. It will also assist you in developing an SEO-friendly, lightweight, and responsive website.<\/p><p>However, it may be difficult to become acquainted with various CSS values, especially if you are new to the language.<\/p><p>To assist you, we&rsquo;ve created a comprehensive CSS Cheat Sheet that will be useful for all of your web development projects. Furthermore, there are 13 pages of CSS and CSS3 declarations, as well as several possible properties.<\/p><p>Let&rsquo;s get started.&nbsp;<\/p><h2 class=\"wp-block-heading\" id=\"h-css-basics\">CSS Basics<\/h2><p>Cascading Style Sheet or CSS is a stylesheet language that dictates how your website elements should look like. You can control the design, layout, font, and color of your website content by <a href=\"\/ng\/tutorials\/website\/how-to-link-a-stylesheet-css-file-to-your-html-file\">embedding a CSS file into your HTML document.<\/a><\/p><p>Let&rsquo;s take a look at how CSS works by breaking down the syntax:<\/p><pre class=\"wp-block-preformatted\">selector {declaration}<\/pre><p>The <strong>declaration<\/strong> can be broken down into:<\/p><pre class=\"wp-block-preformatted\">selector {property: value;}<\/pre><p>As you can see, the CSS syntax consists of a selector and a declaration block. The selector is the <a href=\"\/ng\/tutorials\/what-is-html\">HTML<\/a> element that you&rsquo;re about to control. Whereas the declaration block contains the property name and the value of the <a href=\"\/ng\/tutorials\/html-cheat-sheet\">HTML element<\/a> &ndash; both of them are separated by a colon (:) and declared within curly brackets ({}).<\/p><p>Let&rsquo;s say you want the font size of your heading one (<strong>h1<\/strong>) to be <strong>20 pixels<\/strong>. Your syntax should look like this:<\/p><pre class=\"wp-block-preformatted\">h1 {font-size: 20px;}<\/pre><p>In this case, the selector is <strong>h1<\/strong>. Then, <strong>font-size<\/strong> is the property name, and <strong>20px<\/strong> is the value.<\/p><p>Since CSS has so many selectors and declarations that might be hard to remember, we&rsquo;ve put together a complete CSS and CSS3 Cheat Sheet to help you master the language.<\/p><p>Once you&rsquo;ve downloaded the CSS Cheat Sheet, save the file to your device or print one out. This way, you&rsquo;ll easily find what you&rsquo;re looking for.<\/p><h2 class=\"wp-block-heading\" id=\"h-download-the-full-css-cheat-sheet-here\">Download the Full CSS Cheat Sheet here:<\/h2><p class=\"has-text-align-center\"><strong><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/CSS-3-Cheatsheet.pdf\">Download CSS Cheat Sheet in .pdf<\/a><\/strong><\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/app.monstercampaigns.com\/c\/tivoafpsl7hdyltyzvrf\"><img decoding=\"async\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2017\/06\/CSS-3-Cheatsheet-01-724x1024.jpg\" alt=\"Hostinger's CSS Cheat Sheet PDF cover\"><\/a><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-preview-of-css-cheat-sheet-nbsp\">Preview of CSS Cheat Sheet&nbsp;<\/h3><p>Here&rsquo;s a sneak peek of the most common CSS values and properties taken from our PDF!<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/06\/CSS-3-Cheatsheet-04.png\"><img loading=\"lazy\" decoding=\"async\" width=\"849\" height=\"1200\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/06\/CSS-3-Cheatsheet-04.png\/public\" alt=\"CSS cheat sheet for border, box model, and transitions. \" class=\"wp-image-32309\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/06\/CSS-3-Cheatsheet-04.png\/w=849,fit=scale-down 849w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/06\/CSS-3-Cheatsheet-04.png\/w=212,fit=scale-down 212w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/06\/CSS-3-Cheatsheet-04.png\/w=724,fit=scale-down 724w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/06\/CSS-3-Cheatsheet-04.png\/w=106,fit=scale-down 106w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/06\/CSS-3-Cheatsheet-04.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/06\/CSS-3-Cheatsheet-04.png\/w=1086,fit=scale-down 1086w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2021\/06\/CSS-3-Cheatsheet-04.png\/w=1448,fit=scale-down 1448w\" sizes=\"auto, (max-width: 849px) 100vw, 849px\" \/><\/a><\/figure><\/div><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><a href=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2017\/06\/CSS-3-Cheatsheet-05.png\"><img loading=\"lazy\" decoding=\"async\" width=\"849\" height=\"1200\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2017\/06\/CSS-3-Cheatsheet-05.png\/public\" alt=\"Cheat sheet for box model, font, and colors configurations. \" class=\"wp-image-32311\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2017\/06\/CSS-3-Cheatsheet-05.png\/w=849,fit=scale-down 849w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2017\/06\/CSS-3-Cheatsheet-05.png\/w=212,fit=scale-down 212w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2017\/06\/CSS-3-Cheatsheet-05.png\/w=724,fit=scale-down 724w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2017\/06\/CSS-3-Cheatsheet-05.png\/w=106,fit=scale-down 106w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2017\/06\/CSS-3-Cheatsheet-05.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2017\/06\/CSS-3-Cheatsheet-05.png\/w=1086,fit=scale-down 1086w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2017\/06\/CSS-3-Cheatsheet-05.png\/w=1448,fit=scale-down 1448w\" sizes=\"auto, (max-width: 849px) 100vw, 849px\" \/><\/a><\/figure><\/div><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-web-hosting\" href=\"\/ng\/web-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/public\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>CSS is a website design language that you can use to add background, colors, and even transitions or other interactive elements. It will also assist you in developing an SEO-friendly, lightweight, and responsive website. However, it may be difficult to become acquainted with various CSS values, especially if you are new to the language. To [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/css-cheat-sheet\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":172,"featured_media":145369,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"The Complete CSS Cheat Sheet in PDF and Images","rank_math_description":"Learning about CSS or in the process of designing your website? Find and download a PDF of CSS Cheat Sheet here and see the PNG versions!","rank_math_focus_keyword":"css cheat sheet","footnotes":""},"categories":[22603],"tags":[],"class_list":["post-4686","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website-development"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/css-cheat-sheet","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/codigos-css-prontos-guia-pdf","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/codigos-css-cheat-sheet","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/css-cheat-sheet","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/css-cheat-sheet","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/css-cheat-sheet","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/codigos-css-cheat-sheet","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/codigos-css-cheat-sheet","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/codigos-css-cheat-sheet","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/codigos-css-prontos-guia-pdf","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/css-cheat-sheet","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/css-cheat-sheet","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/css-cheat-sheet","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/css-cheat-sheet","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/4686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/172"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=4686"}],"version-history":[{"count":21,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/4686\/revisions"}],"predecessor-version":[{"id":145368,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/4686\/revisions\/145368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media\/145369"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=4686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=4686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=4686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}