<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to keep the layout of a section centered concerning a whole width section itself in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/703374#M30786</link>
    <description>&lt;P&gt;We want our 12-column grid centered on the Fluid width (inside a section).&lt;BR /&gt;We also want to know how to have a margin of 140px to sx and dx within the full width so that our 12 columns are centered on a base of 14 columns in a resolution of 1920px.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have this problem?&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ibb.co/R2tYqPp" target="_blank" rel="noopener"&gt;This is what I want&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ibb.co/0qk7ks1" target="_blank"&gt;Another example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2022 08:00:22 GMT</pubDate>
    <dc:creator>JVallejo7</dc:creator>
    <dc:date>2022-10-11T08:00:22Z</dc:date>
    <item>
      <title>How to keep the layout of a section centered concerning a whole width section itself</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/703374#M30786</link>
      <description>&lt;P&gt;We want our 12-column grid centered on the Fluid width (inside a section).&lt;BR /&gt;We also want to know how to have a margin of 140px to sx and dx within the full width so that our 12 columns are centered on a base of 14 columns in a resolution of 1920px.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have this problem?&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ibb.co/R2tYqPp" target="_blank" rel="noopener"&gt;This is what I want&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ibb.co/0qk7ks1" target="_blank"&gt;Another example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 08:00:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/703374#M30786</guid>
      <dc:creator>JVallejo7</dc:creator>
      <dc:date>2022-10-11T08:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the layout of a section centered concerning a whole width section itself</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/703807#M30795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/331743"&gt;@JVallejo7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to tag some of our experts here -&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127598"&gt;@Sjardo&lt;/a&gt;&amp;nbsp;do you have any thoughts for&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/331743"&gt;@JVallejo7&lt;/a&gt;&amp;nbsp;on this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;BR /&gt;Best&lt;/P&gt;
&lt;P&gt;Tiphaine&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 08:05:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/703807#M30795</guid>
      <dc:creator>TitiCuisset</dc:creator>
      <dc:date>2022-10-10T08:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the layout of a section centered concerning a whole width section itself</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/704188#M30810</link>
      <description>&lt;P&gt;I am seeing &lt;A href="https://knowledge.hubspot.com/website-pages/use-flexible-columns-in-hubspot-pages#:~:text=In%20your%20HubSpot%20account%2C%20navigate,drag%20it%20onto%20the%20template." target="_blank" rel="noopener"&gt;this page&lt;/A&gt; in Hubspot, but it isn´t updated...&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 07:51:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/704188#M30810</guid>
      <dc:creator>JVallejo7</dc:creator>
      <dc:date>2022-10-11T07:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the layout of a section centered concerning a whole width section itself</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/704219#M30814</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hey &lt;/SPAN&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/379041" target="_blank"&gt;&lt;SPAN&gt;@&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/331743" target="_blank"&gt;&lt;SPAN&gt;JVallejo7&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hubspot only allow 12 columns in drag and drag. you can add padding in left right side if you need spacing, but by dnd you can't make 14 columns , you can make 14 columns by module level with custom css&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If we were able to answer your query, kindly help the community by marking it as a solution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks and Regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 09:13:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/704219#M30814</guid>
      <dc:creator>ChehakWadhdwa</dc:creator>
      <dc:date>2022-10-11T09:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the layout of a section centered concerning a whole width section itself</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/704394#M30820</link>
      <description>&lt;P&gt;Thanks a lot !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what code I need in&amp;nbsp;_layout.css ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;I am trying to follow&amp;nbsp;&lt;A href="https://stefenphelps.com/blog/custom-grid-gutters-on-hubspot/" target="_blank" rel="noopener"&gt;this code&lt;/A&gt;&amp;nbsp;to understand a little, but I don't know how could I do this.&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 15:08:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/704394#M30820</guid>
      <dc:creator>JVallejo7</dc:creator>
      <dc:date>2022-10-11T15:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the layout of a section centered concerning a whole width section itself</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/704667#M30826</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/331743"&gt;@JVallejo7&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you want to keep the drag&amp;amp;drop functionality of this builing block you'll have to modify your CSS. Just for the record: HubSpot uses a custom version of Bootstrap2.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to have something completly own it's possible but - as mentioned - only with custom code. If you have little to no experience with HubSpot development, I'll recommend to work in the Design-Tools. If you want, you can use the &lt;A href="https://developers.hubspot.com/docs/cms/guides/getting-started-with-local-development" target="_blank" rel="noopener"&gt;CLI&lt;/A&gt;. But it's not as easy as the Design-Tools. Especially for beginners.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My personal recommendation would be to &lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/modules/files" target="_blank" rel="noopener"&gt;create a custom module&lt;/A&gt; for your whole row/sections, add the used grid CSS to a new/exsiting CSS file and use the grid classes in the module. If you haven't developed modules before, I'd suggest to pass the "CMS for developers" certification in the HubSpot academy. You'll learn how/where to start and what's important. After that head over to &lt;A href="https://developers.hubspot.com/docs/cms" target="_blank" rel="noopener"&gt;developers.hubspot.com&lt;/A&gt; and dive into the Hubl templating language and building blocks sections.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A basic section module could look like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;section class="myCustomSection"&amp;gt;
&amp;lt;div class="container"&amp;gt;
&amp;lt;div class="row"&amp;gt;
{# start left column #}
&amp;lt;div class="leftColumn col-14 col-lg-6 col-lg-offset-1"&amp;gt;
&amp;lt;h2 class="myCustomHeadline"&amp;gt;{{ module.headline }}&amp;lt;/h2&amp;gt;
&amp;lt;/div&amp;gt;
{# end left column #}

{# start right column #}
&amp;lt;div class="rightColumn col-14 col-lg-6"&amp;gt;
&amp;lt;img src="{{ module.image.src }}" alt="{{ module.image.alt }}" class="myCustomImage"&amp;gt;
&amp;lt;/div&amp;gt;
{# end right column #}
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/section&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;if you add styling via the styling options to it it should look something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{# start styling #}
{% require_css %}
.myCustomSection.{{ name }}{
background-color:{{ module.style.background_color.css }};
}
{% end_require_css %}
{# end styling #}

{# start layout #}
&amp;lt;section class="myCustomSection {{ name }}"&amp;gt;
&amp;lt;div class="container"&amp;gt;
&amp;lt;div class="row"&amp;gt;
{# start left column #}
&amp;lt;div class="leftColumn col-14 col-lg-6 col-lg-offset-1"&amp;gt;
&amp;lt;h2 class="myCustomHeadline"&amp;gt;{{ module.headline }}&amp;lt;/h2&amp;gt;
&amp;lt;/div&amp;gt;
{# end left column #}

{# start right column #}
&amp;lt;div class="rightColumn col-14 col-lg-6"&amp;gt;
&amp;lt;img src="{{ module.image.src }}" alt="{{ module.image.alt }}" class="myCustomImage"&amp;gt;
&amp;lt;/div&amp;gt;
{# end right column #}
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/section&amp;gt;
{# end layout #}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or - you could drop your 14-column logic and "go back" to a widely accepted 12-column grid. This will make your life much easier since you could use the buildin classes and the only thing that's left is to customize the media-queries if they're not sufficient enough for you.&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;If you have started from scratch I recommend to take a look at the &lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/themes/hubspot-cms-boilerplate" target="_blank" rel="noopener"&gt;cms boilerplate&lt;/A&gt;&amp;nbsp;which contains the latest default layout classes. You can either create a new theme with the boilerplate as a starting point or just copy&amp;amp;paste/fetching it from &lt;A href="https://github.com/HubSpot/cms-theme-boilerplate/tree/main/src" target="_blank" rel="noopener"&gt;Github&lt;/A&gt;.&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;By staying in the HubSpot grid you could create a &lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/templates/drag-and-drop-areas/sections#create-reusable-sections" target="_blank" rel="noopener"&gt;custom drag&amp;amp;drop sections&lt;/A&gt;.&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-unlink="true"&gt;a very basic custom drag&amp;amp;drop section could look like this&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% dnd_section padding={"top":"60px","bottom":"60px"}, vertical_alignment="TOP" %}
            {% dnd_module path='@hubspot/rich_text' %}
                {% module_attribute 'html' %}
                    {{ context.content || '&amp;lt;h2 class="tc"&amp;gt;Lorem Ipsum&amp;lt;/h2&amp;gt;
                {% end_module_attribute %}
            {% end_dnd_module %}
{% end_dnd_section %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's also very important it's the understanding of how it's structured. Here's a&amp;nbsp;helpful &lt;A href="https://developers.hubspot.com/docs/cms/building-blocks/templates/drag-and-drop-areas#drag-and-drop-areas-and-their-elements" target="_blank" rel="noopener"&gt;resource/link&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope that helps,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;
&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 06:33:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/704667#M30826</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2022-10-12T06:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the layout of a section centered concerning a whole width section itself</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/705276#M30836</link>
      <description>&lt;P&gt;Thanks a lot for your response, I will try to do it with your advice.&lt;/P&gt;&lt;P&gt;I see you are applying classes "&lt;EM&gt;col-14 col-lg-6 col-lg-offset-1&lt;/EM&gt;" in your code.&lt;BR /&gt;This advanced bootstrap code is not in the default hubspot template.&lt;BR /&gt;Would I have to change it completely?&lt;BR /&gt;&lt;BR /&gt;This is my _layout.css:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;.body-wrapper {&lt;BR /&gt;overflow: hidden;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/* Responsive Grid */&lt;BR /&gt;&lt;BR /&gt;.row-fluid {&lt;BR /&gt;width: 100%;&lt;BR /&gt;*zoom: 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid:before, .row-fluid:after {&lt;BR /&gt;display: table;&lt;BR /&gt;content: "";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid:after {&lt;BR /&gt;clear: both;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid [class*="span"] {&lt;BR /&gt;display: block;&lt;BR /&gt;float: left;&lt;BR /&gt;width: 100%;&lt;BR /&gt;min-height: 1px;&lt;BR /&gt;margin-left: 2.127659574%;&lt;BR /&gt;*margin-left: 2.0744680846382977%;&lt;BR /&gt;-webkit-box-sizing: border-box;&lt;BR /&gt;-moz-box-sizing: border-box;&lt;BR /&gt;-ms-box-sizing: border-box;&lt;BR /&gt;box-sizing: border-box;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid [class*="span"]:first-child {&lt;BR /&gt;margin-left: 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span12 {&lt;BR /&gt;width: 99.99999998999999%;&lt;BR /&gt;*width: 99.94680850063828%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span11 {&lt;BR /&gt;width: 91.489361693%;&lt;BR /&gt;*width: 91.4361702036383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span10 {&lt;BR /&gt;width: 82.97872339599999%;&lt;BR /&gt;*width: 82.92553190663828%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span9 {&lt;BR /&gt;width: 74.468085099%;&lt;BR /&gt;*width: 74.4148936096383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span8 {&lt;BR /&gt;width: 65.95744680199999%;&lt;BR /&gt;*width: 65.90425531263828%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span7 {&lt;BR /&gt;width: 57.446808505%;&lt;BR /&gt;*width: 57.3936170156383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span6 {&lt;BR /&gt;width: 48.93617020799999%;&lt;BR /&gt;*width: 48.88297871863829%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span5 {&lt;BR /&gt;width: 40.425531911%;&lt;BR /&gt;*width: 40.3723404216383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span4 {&lt;BR /&gt;width: 31.914893614%;&lt;BR /&gt;*width: 31.8617021246383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span3 {&lt;BR /&gt;width: 23.404255317%;&lt;BR /&gt;*width: 23.3510638276383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span2 {&lt;BR /&gt;width: 14.89361702%;&lt;BR /&gt;*width: 14.8404255306383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span1 {&lt;BR /&gt;width: 6.382978723%;&lt;BR /&gt;*width: 6.329787233638298%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.container-fluid {&lt;BR /&gt;*zoom: 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.container-fluid:before, .container-fluid:after {&lt;BR /&gt;display: table;&lt;BR /&gt;content: "";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.container-fluid:after {&lt;BR /&gt;clear: both;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/83477"&gt;@media&lt;/a&gt; (max-width: 767px) {&lt;BR /&gt;.row-fluid {&lt;BR /&gt;width: 100%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid [class*="span"] {&lt;BR /&gt;display: block;&lt;BR /&gt;float: none;&lt;BR /&gt;width: auto;&lt;BR /&gt;margin-left: 0;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/83477"&gt;@media&lt;/a&gt; (min-width: 768px) and (max-width: 1139px) {&lt;BR /&gt;.row-fluid {&lt;BR /&gt;width: 100%;&lt;BR /&gt;*zoom: 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid:before, .row-fluid:after {&lt;BR /&gt;display: table;&lt;BR /&gt;content: "";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid:after {&lt;BR /&gt;clear: both;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid [class*="span"] {&lt;BR /&gt;display: block;&lt;BR /&gt;float: left;&lt;BR /&gt;width: 100%;&lt;BR /&gt;min-height: 1px;&lt;BR /&gt;margin-left: 2.762430939%;&lt;BR /&gt;*margin-left: 2.709239449638298%;&lt;BR /&gt;-webkit-box-sizing: border-box;&lt;BR /&gt;-moz-box-sizing: border-box;&lt;BR /&gt;-ms-box-sizing: border-box;&lt;BR /&gt;box-sizing: border-box;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid [class*="span"]:first-child {&lt;BR /&gt;margin-left: 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span12 {&lt;BR /&gt;width: 99.999999993%;&lt;BR /&gt;*width: 99.9468085036383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span11 {&lt;BR /&gt;width: 91.436464082%;&lt;BR /&gt;*width: 91.38327259263829%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span10 {&lt;BR /&gt;width: 82.87292817100001%;&lt;BR /&gt;*width: 82.8197366816383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span9 {&lt;BR /&gt;width: 74.30939226%;&lt;BR /&gt;*width: 74.25620077063829%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span8 {&lt;BR /&gt;width: 65.74585634900001%;&lt;BR /&gt;*width: 65.6926648596383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span7 {&lt;BR /&gt;width: 57.182320438000005%;&lt;BR /&gt;*width: 57.129128948638304%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span6 {&lt;BR /&gt;width: 48.618784527%;&lt;BR /&gt;*width: 48.5655930376383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span5 {&lt;BR /&gt;width: 40.055248616%;&lt;BR /&gt;*width: 40.0020571266383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span4 {&lt;BR /&gt;width: 31.491712705%;&lt;BR /&gt;*width: 31.4385212156383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span3 {&lt;BR /&gt;width: 22.928176794%;&lt;BR /&gt;*width: 22.874985304638297%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span2 {&lt;BR /&gt;width: 14.364640883%;&lt;BR /&gt;*width: 14.311449393638298%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span1 {&lt;BR /&gt;width: 5.801104972%;&lt;BR /&gt;*width: 5.747913482638298%;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/83477"&gt;@media&lt;/a&gt; (min-width: 1280px) {&lt;BR /&gt;.row-fluid {&lt;BR /&gt;width: 100%;&lt;BR /&gt;*zoom: 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid:before, .row-fluid:after {&lt;BR /&gt;display: table;&lt;BR /&gt;content: "";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid:after {&lt;BR /&gt;clear: both;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid [class*="span"] {&lt;BR /&gt;display: block;&lt;BR /&gt;float: left;&lt;BR /&gt;width: 100%;&lt;BR /&gt;min-height: 1px;&lt;BR /&gt;margin-left: 2.564102564%;&lt;BR /&gt;*margin-left: 2.510911074638298%;&lt;BR /&gt;-webkit-box-sizing: border-box;&lt;BR /&gt;-moz-box-sizing: border-box;&lt;BR /&gt;-ms-box-sizing: border-box;&lt;BR /&gt;box-sizing: border-box;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid [class*="span"]:first-child {&lt;BR /&gt;margin-left: 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span12 {&lt;BR /&gt;width: 100%;&lt;BR /&gt;*width: 99.94680851063829%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span11 {&lt;BR /&gt;width: 91.45299145300001%;&lt;BR /&gt;*width: 91.3997999636383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span10 {&lt;BR /&gt;width: 82.905982906%;&lt;BR /&gt;*width: 82.8527914166383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span9 {&lt;BR /&gt;width: 74.358974359%;&lt;BR /&gt;*width: 74.30578286963829%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span8 {&lt;BR /&gt;width: 65.81196581200001%;&lt;BR /&gt;*width: 65.7587743226383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span7 {&lt;BR /&gt;width: 57.264957265%;&lt;BR /&gt;*width: 57.2117657756383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span6 {&lt;BR /&gt;width: 48.717948718%;&lt;BR /&gt;*width: 48.6647572286383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span5 {&lt;BR /&gt;width: 40.170940171000005%;&lt;BR /&gt;*width: 40.117748681638304%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span4 {&lt;BR /&gt;width: 31.623931624%;&lt;BR /&gt;*width: 31.5707401346383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span3 {&lt;BR /&gt;width: 23.076923077%;&lt;BR /&gt;*width: 23.0237315876383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span2 {&lt;BR /&gt;width: 14.529914530000001%;&lt;BR /&gt;*width: 14.4767230406383%;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.row-fluid .span1 {&lt;BR /&gt;width: 5.982905983%;&lt;BR /&gt;*width: 5.929714493638298%;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/* Clearfix */&lt;BR /&gt;&lt;BR /&gt;.clearfix {&lt;BR /&gt;*zoom: 1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.clearfix:before, .clearfix:after {&lt;BR /&gt;display: table;&lt;BR /&gt;content: "";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.clearfix:after {&lt;BR /&gt;clear: both;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/* Visibilty Classes */&lt;BR /&gt;&lt;BR /&gt;.hide {&lt;BR /&gt;display: none;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.show {&lt;BR /&gt;display: block;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.invisible {&lt;BR /&gt;visibility: hidden;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;.hidden {&lt;BR /&gt;display: none;&lt;BR /&gt;visibility: hidden;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;/* Responsive Visibilty Classes */&lt;BR /&gt;&lt;BR /&gt;#main-content .visible-phone {&lt;BR /&gt;display: none;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;#main-content .visible-tablet {&lt;BR /&gt;display: none;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;#main-content .hidden-desktop {&lt;BR /&gt;display: none;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/83477"&gt;@media&lt;/a&gt; (max-width: 767px) {&lt;BR /&gt;#main-content .visible-phone {&lt;BR /&gt;display: inherit;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;#main-content .hidden-phone {&lt;BR /&gt;display: none;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;#main-content .hidden-desktop {&lt;BR /&gt;display: inherit;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;#main-content .visible-desktop {&lt;BR /&gt;display: none;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/83477"&gt;@media&lt;/a&gt; (min-width: 768px) and (max-width: 1139px) {&lt;BR /&gt;#main-content .visible-tablet {&lt;BR /&gt;display: inherit;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;#main-content .hidden-tablet {&lt;BR /&gt;display: none;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;#main-content .hidden-desktop {&lt;BR /&gt;display: inherit;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;#main-content .visible-desktop {&lt;BR /&gt;display: none;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 08:14:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/705276#M30836</guid>
      <dc:creator>JVallejo7</dc:creator>
      <dc:date>2022-10-13T08:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to keep the layout of a section centered concerning a whole width section itself</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/705706#M30855</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/331743"&gt;@JVallejo7&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;right. I've used those classes just as an example. They might differ from yours.&lt;/P&gt;
&lt;P&gt;And as hard as it is - I have to recomend you &lt;STRONG&gt;not to modify the default grid of HubSpot&lt;/STRONG&gt;. Unless you want to of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're not planing to use the drag&amp;amp;drop functionality but create "hard coded" templates with specific custom modules or default HubSpot modules, you can ignore the default it completly. To do so you can replace it with your tailwind, Bootstrap5 or whatever grid system you're using CSS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to add your custom grid on top because you want to use drag&amp;amp;drop, I recomend you to create a new/empty CSS file, paste your grid into it and import the CSS file in your main.css file. This will bloat the CSS and can lead to a performance drop but this is a working pracitise. The only thing to note is that you either load it after the default grid or work out the classes that are same.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you haven't already simply create a file with&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{% dnd_area "dnd_area"
  label="Main section",
  class="body-container body-container--about"
%}

{% end_dnd_area %}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this code(which would not work for production) will give you this as output&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;...
&amp;lt;div class="container-fluid body-container body-container--about"&amp;gt;
&amp;lt;div class="row-fluid-wrapper"&amp;gt;
&amp;lt;div class="row-fluid"&amp;gt;
&amp;lt;div class="span12 widget-span widget-type-cell " style="" data-widget-type="cell" data-x="0" data-w="12"&amp;gt;

&amp;lt;/div&amp;gt;&amp;lt;!--end widget-span --&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so you need the default grid for the drag&amp;amp;drop functionality since drag&amp;amp;drop areas, sections, row, modules will always generate those classes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned - you can completly ignore them if you're not using drag&amp;amp;drop or create for everything a custom module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope that helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 22:04:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-keep-the-layout-of-a-section-centered-concerning-a-whole/m-p/705706#M30855</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2022-10-13T22:04:14Z</dc:date>
    </item>
  </channel>
</rss>

