{"id":765,"date":"2025-12-02T03:08:59","date_gmt":"2025-12-02T03:08:59","guid":{"rendered":"https:\/\/www.cssportal.com\/blog\/?p=765"},"modified":"2025-12-02T03:08:59","modified_gmt":"2025-12-02T03:08:59","slug":"css-margin-vs-padding-guide","status":"publish","type":"post","link":"https:\/\/www.cssportal.com\/blog\/css-margin-vs-padding-guide\/","title":{"rendered":"CSS Margin vs Padding Guide"},"content":{"rendered":"<p>When working with CSS, one of the most common layout questions developers face is whether to use <strong>margin<\/strong> or <strong>padding<\/strong>. Both add space, but they do it in very different ways. Margin creates space <em>outside<\/em> an element, separating it from its neighbors, while padding adds space <em>inside<\/em> an element, pushing its content inward. Understanding how these two properties work\u2014and when to use each\u2014is essential for creating clean, consistent, and visually appealing layouts.<\/p>\n<p>In this guide, we\u2019ll break down the CSS box model, explore the differences between margin and padding, compare real-world use cases, and look at common pitfalls to avoid. By the end, you\u2019ll have a solid, practical understanding of how to apply spacing confidently in your designs. Don&#8217;t forgot to view our pages for <a href=\"\/css-properties\/margin.php\">CSS margin property<\/a> and <a href=\"\/css-properties\/padding.php\">CSS padding property<\/a>.<\/p>\n<h3 class=\"highlight\"><strong>The Box Model Basics<\/strong><\/h3>\n<p>To understand margin and padding, it helps to start with the CSS box model\u2014the foundation of how elements are sized and spaced on a webpage. Every element you see in the browser is represented as a rectangular box made up of four layers:<\/p>\n<ol>\n<li><strong>Content<\/strong> \u2013 The text, image, or other data inside the element.<\/li>\n<li><strong>Padding<\/strong> \u2013 The space between the content and the element\u2019s border.<\/li>\n<li><strong>Border<\/strong> \u2013 The line (visible or invisible) that surrounds the padding and content.<\/li>\n<li><strong>Margin<\/strong> \u2013 The outermost layer, creating space between the element and surrounding elements.<\/li>\n<\/ol>\n<p>These layers work together to determine how much space an element occupies and how it interacts with other elements around it. When you adjust padding or margin, you\u2019re not just adding visual space\u2014you\u2019re influencing the entire layout.<\/p>\n<p>Understanding this model is key because it affects how your layouts respond, stack, and scale. With the basics in place, you\u2019ll be able to clearly see how margin and padding play their distinct roles.<\/p>\n<h3 class=\"highlight\"><strong>What Is Margin in CSS?<\/strong><\/h3>\n<p><strong>Margin<\/strong> is the space <em>outside<\/em> an element\u2019s border. It controls how far an element sits from its neighboring elements, making it an essential tool for managing spacing and layout structure.<\/p>\n<p>Margins don\u2019t affect the size of the element itself\u2014they only influence its positioning within the surrounding layout. This makes them ideal for creating consistent spacing between sections, cards, buttons, or any block-level components.<\/p>\n<h4><strong>How Margins Work<\/strong><\/h4>\n<ul>\n<li>Margins push elements away from each other.<\/li>\n<li>They create <em>external<\/em> whitespace.<\/li>\n<li>They can be set individually for each side (<code>margin-top<\/code>, <code>margin-right<\/code>, <code>margin-bottom<\/code>, <code>margin-left<\/code>) or using shorthand (<code>margin: 20px 10px;<\/code>).<\/li>\n<\/ul>\n<h4><strong>Margin Collapsing<\/strong><\/h4>\n<p>One important detail: <strong>vertical margins can collapse<\/strong>.<br \/>\nThis means when two block elements sit on top of each other, the larger of the two margins is used instead of adding them together.<\/p>\n<p>For example:<\/p>\n<div class=\"headerblog\">CSS Code<\/div>\n<pre><code class=\"language-css\">div + div {\r\n  margin-top: 20px; \/* Only 20px gap appears even if both have margin-top *\/\r\n}\r\n<\/code><\/pre>\n<p>Horizontal margins, however, never collapse.<\/p>\n<h4><strong>Margin Shorthand Examples<\/strong><\/h4>\n<div class=\"headerblog\">CSS Code<\/div>\n<pre><code class=\"language-css\">margin: 20px;          \/* all sides *\/\r\nmargin: 10px 20px;     \/* top\/bottom, left\/right *\/\r\nmargin: 5px 10px 15px; \/* top, left\/right, bottom *\/\r\nmargin: 5px 10px 15px 20px; \/* top, right, bottom, left *\/\r\n<\/code><\/pre>\n<p>Margins are best used when you want to control the spacing <em>around<\/em> elements without changing their internal visual structure.<\/p>\n<h3 class=\"highlight\"><strong>What Is Padding in CSS?<\/strong><\/h3>\n<p><strong>Padding<\/strong> is the space <em>inside<\/em> an element\u2014between the content and the border. While margins control how much room an element has on the outside, padding controls the breathing room <em>within<\/em> the element itself.<\/p>\n<p>Adding padding effectively enlarges the clickable or readable area of an element. This makes padding especially important for buttons, form fields, cards, and any component where the content needs comfortable spacing.<\/p>\n<h4><strong>How Padding Works<\/strong><\/h4>\n<ul>\n<li>Padding increases the space between the element\u2019s content and its border.<\/li>\n<li>Padding affects the element\u2019s total size unless <code>box-sizing: border-box<\/code> is used.<\/li>\n<li>Like margins, padding can be set on each side or via shorthand.<\/li>\n<\/ul>\n<h4><strong>Padding Does Not Collapse<\/strong><\/h4>\n<p>Unlike margins, padding <strong>never collapses<\/strong>.<br \/>\nEach element\u2019s padding is fully respected, and layers of padding stack as expected.<\/p>\n<h4><strong>Padding Shorthand Examples<\/strong><\/h4>\n<div class=\"headerblog\">CSS Code<\/div>\n<pre><code class=\"language-css\">padding: 20px;          \/* all sides *\/\r\npadding: 10px 20px;     \/* top\/bottom, left\/right *\/\r\npadding: 5px 10px 15px; \/* top, left\/right, bottom *\/\r\npadding: 5px 10px 15px 20px; \/* top, right, bottom, left *\/\r\n<\/code><\/pre>\n<h4><strong>Impact on Element Size<\/strong><\/h4>\n<p>Padding increases an element\u2019s total width and height by default:<\/p>\n<pre><code>total width = width + left padding + right padding + border\r\ntotal height = height + top padding + bottom padding + border\r\n<\/code><\/pre>\n<p>If you want padding to stay inside the element\u2019s declared size, you can use:<\/p>\n<div class=\"headerblog\">CSS Code<\/div>\n<pre><code class=\"language-css\">box-sizing: border-box;\r\n<\/code><\/pre>\n<p>This keeps the element\u2019s total size consistent regardless of padding.<\/p>\n<div class=\"text-center mb-20 mt-20\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<!-- CSS Responsive -->\n<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-1356719463849900\"\n     data-ad-slot=\"5275015068\"\n     data-ad-format=\"horizontal\"\n     data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n<\/div>\n<div class=\"adblock-message bg-main-50 rounded p-10 mb-20\">  \n\t<div class=\"d-flex align-items-center justify-content-between\">\n\t  <span class=\"text-gray-400\">If this site has been useful, we\u2019d love your support! Consider buying us a coffee to keep things going strong!<\/span>\n\t  <div class=\"buymeacoffee\">\n\t\t<a target=\"_blank\" href=\"https:\/\/buymeacoffee.com\/rpjs\"><img decoding=\"async\" width=\"180\" src=\"\/assets\/images\/coffee.png\"><\/a>\n\t  <\/div>\n\t<\/div>\n<\/div>\n<h3 class=\"highlight\"><strong>Margin vs Padding: Key Differences at a Glance<\/strong><\/h3>\n<p>Margin and padding both create space, but they do it in very different ways. Understanding when to use each is essential for building clean, predictable layouts. Here\u2019s a quick side-by-side comparison to make the differences crystal clear.<\/p>\n<h4><strong>Comparison Table<\/strong><\/h4>\n<table class=\"table table-bordered\">\n<thead>\n<tr>\n<th>Feature<\/th>\n<th>Margin<\/th>\n<th>Padding<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Location<\/strong><\/td>\n<td>Outside the border<\/td>\n<td>Inside the border<\/td>\n<\/tr>\n<tr>\n<td><strong>Affects Element Size?<\/strong><\/td>\n<td>No<\/td>\n<td>Yes (unless using <code>box-sizing: border-box<\/code>)<\/td>\n<\/tr>\n<tr>\n<td><strong>Creates Space For\u2026<\/strong><\/td>\n<td>Separation between elements<\/td>\n<td>Space around the element\u2019s content<\/td>\n<\/tr>\n<tr>\n<td><strong>Collapses?<\/strong><\/td>\n<td>Vertical margins can collapse<\/td>\n<td>Never collapses<\/td>\n<\/tr>\n<tr>\n<td><strong>Used For<\/strong><\/td>\n<td>Layout spacing between components<\/td>\n<td>Improving readability and touch\/click comfort inside elements<\/td>\n<\/tr>\n<tr>\n<td><strong>Allows Negative Values?<\/strong><\/td>\n<td>Yes<\/td>\n<td>No<\/td>\n<\/tr>\n<tr>\n<td><strong>Part of Background?<\/strong><\/td>\n<td>No \u2014 backgrounds don\u2019t extend into margins<\/td>\n<td>Yes \u2014 backgrounds extend under padding<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><strong>When to Choose Which<\/strong><\/h4>\n<ul>\n<li>Use <strong>margin<\/strong> to separate one element from another.<\/li>\n<li>Use <strong>padding<\/strong> to add breathing room inside an element.<\/li>\n<li>If spacing affects layout structure \u2192 <strong>margin<\/strong><\/li>\n<li>If spacing affects content comfort or visual balance \u2192 <strong>padding<\/strong><\/li>\n<\/ul>\n<p>This simple distinction helps keep your UI consistent and prevents layout issues that happen when the two are mixed incorrectly.<\/p>\n<h3 class=\"highlight\"><strong>Visual Examples (With Diagrams)<\/strong><\/h3>\n<p>Understanding margin and padding becomes much easier when you can <em>see<\/em> how they affect an element. Below are simple visual diagrams to help illustrate the difference between spacing inside and outside an element.<\/p>\n<h4><strong>Box Model Diagram<\/strong><\/h4>\n<p><img decoding=\"async\" src=\"\/blog-examples\/box_model.png\" alt=\"CSS Box Modal Example\" \/><\/p>\n<p>This diagram shows how each layer wraps around the next:<\/p>\n<ul>\n<li><strong>Content<\/strong> is at the center<\/li>\n<li><strong>Padding<\/strong> surrounds the content<\/li>\n<li><strong>Border<\/strong> surrounds the padding<\/li>\n<li><strong>Margin<\/strong> is the outermost space<\/li>\n<\/ul>\n<h4><strong>Margin Example<\/strong><\/h4>\n<p><img decoding=\"async\" src=\"\/blog-examples\/margin_example.png\" alt=\"CSS Margin Example\" \/><\/p>\n<p>Here, the extra space sits <strong>outside<\/strong> the box, separating the element from others around it.<\/p>\n<h4><strong>Padding Example<\/strong><\/h4>\n<p><img decoding=\"async\" src=\"\/blog-examples\/padding_example.png\" alt=\"CSS Padding Example\" \/><\/p>\n<p>In this case, padding expands the area <strong>inside<\/strong> the element, making the content feel more spacious.<\/p>\n<h4><strong>Using Colors to Visualize in CSS<\/strong><\/h4>\n<p>You can also test this visually in your editor:<\/p>\n<div class=\"headerblog\">CSS Code<\/div>\n<pre><code class=\"language-css\">.box-example {\r\n  background: lightblue;\r\n  padding: 20px;\r\n  border: 2px solid blue;\r\n  margin: 20px;\r\n}\r\n<\/code><\/pre>\n<div class=\"headerblog\">Results<\/div>\n<pre>\r\n<div style=\"background: lightblue;padding: 20px;border: 2px solid blue;margin: 20px;\">Box Example, 20px Padding + 20px Margin<\/div>\r\n<\/pre>\n<p>With background colors applied:<\/p>\n<ul>\n<li>Padding space appears as part of the colored box<\/li>\n<li>Margin space appears <em>outside<\/em> the box and stays uncolored<\/li>\n<\/ul>\n<p>These simple visuals are often the easiest way for beginners to grasp margin vs padding instantly.<\/p>\n<div class=\"text-center mb-20 mt-20\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\n<!-- CSS Responsive -->\n<ins class=\"adsbygoogle\"\n     style=\"display:block\"\n     data-ad-client=\"ca-pub-1356719463849900\"\n     data-ad-slot=\"5275015068\"\n     data-ad-format=\"horizontal\"\n     data-full-width-responsive=\"true\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script>\n<\/div>\n<div class=\"adblock-message bg-main-50 rounded p-10 mb-20\">  \n\t<div class=\"d-flex align-items-center justify-content-between\">\n\t  <span class=\"text-gray-400\">If this site has been useful, we\u2019d love your support! Consider buying us a coffee to keep things going strong!<\/span>\n\t  <div class=\"buymeacoffee\">\n\t\t<a target=\"_blank\" href=\"https:\/\/buymeacoffee.com\/rpjs\"><img decoding=\"async\" width=\"180\" src=\"\/assets\/images\/coffee.png\"><\/a>\n\t  <\/div>\n\t<\/div>\n<\/div>\n<h3 class=\"highlight\"><strong>When to Use Margin vs Padding<\/strong><\/h3>\n<p>Margin and padding often appear interchangeable at first glance, but choosing the right one can dramatically improve the clarity, consistency, and maintainability of your layout. Here\u2019s a simple guide to help you decide which spacing tool fits each situation.<\/p>\n<h4><strong>Use Margin When\u2026<\/strong><\/h4>\n<h5><strong>1. You Need Space <em>Between<\/em> Elements<\/strong><\/h5>\n<p>Margin creates separation from outside elements, making it ideal for:<\/p>\n<ul>\n<li>Spacing between sections<\/li>\n<li>Gaps between cards, list items, or blocks<\/li>\n<li>Creating breathing room between unrelated components<\/li>\n<\/ul>\n<h5><strong>2. You Want Layout-Level Control<\/strong><\/h5>\n<p>Margins push elements away from each other. They\u2019re perfect for tuning the structure of your page.<\/p>\n<h5><strong>3. You Need Negative Space Adjustments<\/strong><\/h5>\n<p>Margins can be <strong>negative<\/strong>, which allows you to:<\/p>\n<ul>\n<li>Pull elements closer together<\/li>\n<li>Overlap elements intentionally<\/li>\n<li>Fine-tune tight layouts<\/li>\n<\/ul>\n<h4><strong>Use Padding When\u2026<\/strong><\/h4>\n<h5><strong>1. You Want Space <em>Inside<\/em> the Element<\/strong><\/h5>\n<p>Padding is the internal cushion that improves readability and usability:<\/p>\n<ul>\n<li>Button text needs breathing room<\/li>\n<li>Headings or paragraphs look cramped<\/li>\n<li>Cards or containers need a soft, comfortable inner layout<\/li>\n<\/ul>\n<h5><strong>2. You Want to Increase Clickable\/Tappable Areas<\/strong><\/h5>\n<p>More padding = larger hit area.<br \/>\nThis is essential for:<\/p>\n<ul>\n<li>Buttons<\/li>\n<li>Form inputs<\/li>\n<li>Navigation links<\/li>\n<\/ul>\n<h5><strong>3. You Want Backgrounds to Expand with the Content<\/strong><\/h5>\n<p>Because background colors and images extend into padding, it\u2019s ideal for:<\/p>\n<ul>\n<li>Badges or tags<\/li>\n<li>Highlighted blocks<\/li>\n<li>Alerts, cards, or callouts<\/li>\n<\/ul>\n<h4><strong>Quick Rule of Thumb<\/strong><\/h4>\n<ul>\n<li><strong>Margin = spacing outside<\/strong><\/li>\n<li><strong>Padding = spacing inside<\/strong><\/li>\n<\/ul>\n<p>If the spacing affects the surrounding layout \u2192 <strong>Margin<\/strong><br \/>\nIf the spacing affects the content within the element \u2192 <strong>Padding<\/strong><\/p>\n<h3 class=\"highlight\"><strong>Advanced Tips and Gotchas<\/strong><\/h3>\n<p>Even once you understand the basics of margin and padding, there are some subtle behaviors and lesser-known rules that can impact how elements are displayed. Knowing these helps you avoid layout bugs and write cleaner, more predictable CSS.<\/p>\n<h4><strong>1. Margin Collapsing: The Unexpected Space Saver<\/strong><\/h4>\n<p>Vertical margins collapse when two block-level elements meet.<br \/>\nThis can cause confusion when:<\/p>\n<ul>\n<li>A parent and its first\/last child both have margins<\/li>\n<li>Two stacked elements have top\/bottom margins<\/li>\n<li>Empty elements have margins<\/li>\n<\/ul>\n<p><strong>Tip:<\/strong><br \/>\nIf you want to <em>prevent<\/em> collapsing, add:<\/p>\n<ul>\n<li>Padding to the parent<\/li>\n<li>A border<\/li>\n<li><code>overflow: auto<\/code> (or another non-visible overflow value)<\/li>\n<\/ul>\n<h4><strong>2. Negative Margins: Powerful but Easy to Misuse<\/strong><\/h4>\n<p>Negative margins can pull elements closer together or even overlap them.<\/p>\n<p>Common uses:<\/p>\n<ul>\n<li>Fine-tuning overlapping elements<\/li>\n<li>Pulling headings closer to images<\/li>\n<li>Creating more dynamic layouts<\/li>\n<\/ul>\n<p>But be cautious\u2014overusing negative margins can make layouts behave unpredictably across breakpoints.<\/p>\n<h4><strong>3. Box-Sizing Makes Padding Easier<\/strong><\/h4>\n<p>By default (<code>box-sizing: content-box<\/code>), padding increases the total size of an element.<\/p>\n<p>Switching to:<\/p>\n<div class=\"headerblog\">CSS Code<\/div>\n<pre><code class=\"language-css\">* {\r\n  box-sizing: border-box;\r\n}\r\n<\/code><\/pre>\n<p>ensures:<\/p>\n<ul>\n<li>Padding stays <em>inside<\/em> the declared width\/height<\/li>\n<li>Layouts are easier to manage<\/li>\n<li>Components remain consistent and modular<\/li>\n<\/ul>\n<p>This is a widely adopted best practice in modern CSS.<\/p>\n<h4><strong>4. Auto Margins for Centering<\/strong><\/h4>\n<p>Margins can do more than create space\u2014they can also position elements.<\/p>\n<p><code>margin: 0 auto<\/code> is the classic way to center block-level elements with a defined width:<\/p>\n<div class=\"headerblog\">CSS Code<\/div>\n<pre><code class=\"language-css\">.container {\r\n  width: 80%;\r\n  margin: 0 auto;\r\n}\r\n<\/code><\/pre>\n<p>This technique is still used everywhere in responsive design.<\/p>\n<h4><strong>5. Padding Shapes Backgrounds, Margin Does Not<\/strong><\/h4>\n<p>Remember:<\/p>\n<ul>\n<li><code>padding<\/code> expands the background<\/li>\n<li><code>margin<\/code> does not affect background or border<\/li>\n<\/ul>\n<p>This becomes especially important when designing:<\/p>\n<ul>\n<li>Buttons<\/li>\n<li>Cards and panels<\/li>\n<li>Alerts and highlighted content<\/li>\n<\/ul>\n<h4><strong>6. Percentages Behave Differently<\/strong><\/h4>\n<p>Margins and padding accept percentage values\u2014but they\u2019re both calculated from the <strong>width<\/strong> of the containing block, not the height.<\/p>\n<p>This can surprise developers when using:<\/p>\n<div class=\"headerblog\">CSS Code<\/div>\n<pre><code class=\"language-css\">padding-top: 50%;\r\n<\/code><\/pre>\n<p>It creates responsive height proportional to the width, which is a popular technique for responsive squares and video containers.<\/p>\n<h4><strong>7. Understanding the \u201cLast Margin Wins\u201d Issue<\/strong><\/h4>\n<p>Sometimes two elements both have bottom and top margins that collapse. The larger of the two applies, which may look like your smaller margin was ignored.<\/p>\n<p>If precise spacing is crucial, use padding or a border to prevent margin collapse.<\/p>\n<h4><strong>8. Inline Elements Ignore Vertical Margins<\/strong><\/h4>\n<p>Inline elements (like <code>&lt;span&gt;<\/code>) respect horizontal margins but mostly ignore vertical ones.<\/p>\n<p>If you need vertical spacing:<\/p>\n<ul>\n<li>Switch to <code>display: inline-block<\/code><\/li>\n<li>Or apply padding instead<\/li>\n<\/ul>\n<p>These advanced margin and padding behaviors can greatly influence your layout\u2014especially in larger, component-based designs. Keep them in mind to prevent spacing bugs and ensure consistency across your UI.<\/p>\n<h3 class=\"highlight\"><strong>Conclusion<\/strong><\/h3>\n<p>Mastering the difference between <strong>margin<\/strong> and <strong>padding<\/strong> is one of the most important steps toward writing clean, predictable, and professional CSS. While both properties control spacing, they do so in very different ways\u2014margin separates elements from the outside, while padding creates comfortable space on the inside.<\/p>\n<p>By understanding how these properties fit into the CSS box model, recognizing when to use each, and watching out for common pitfalls like margin collapsing or box-sizing behavior, you gain full control over layout structure and visual balance. Whether you&#39;re styling simple components or building complex UI systems, consistent spacing is what ties everything together.<\/p>\n<p>With these concepts in hand\u2014and the cheat sheets and diagrams as quick references\u2014you\u2019ll be well-equipped to create interfaces that feel polished, readable, and user-friendly. The more you practice applying margin and padding intentionally, the more intuitive and powerful CSS layout becomes.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When working with CSS, one of the most common layout questions developers face is whether to use margin or padding. Both add space, but they do it in very different ways. Margin creates space outside an element, separating it from its neighbors, while padding adds space inside an element, pushing its content inward. Understanding how [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":766,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-765","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css","wpautop"],"_links":{"self":[{"href":"https:\/\/www.cssportal.com\/blog\/wp-json\/wp\/v2\/posts\/765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cssportal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cssportal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cssportal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cssportal.com\/blog\/wp-json\/wp\/v2\/comments?post=765"}],"version-history":[{"count":1,"href":"https:\/\/www.cssportal.com\/blog\/wp-json\/wp\/v2\/posts\/765\/revisions"}],"predecessor-version":[{"id":767,"href":"https:\/\/www.cssportal.com\/blog\/wp-json\/wp\/v2\/posts\/765\/revisions\/767"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cssportal.com\/blog\/wp-json\/wp\/v2\/media\/766"}],"wp:attachment":[{"href":"https:\/\/www.cssportal.com\/blog\/wp-json\/wp\/v2\/media?parent=765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cssportal.com\/blog\/wp-json\/wp\/v2\/categories?post=765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cssportal.com\/blog\/wp-json\/wp\/v2\/tags?post=765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}