This is the look I’m going for. The tabbed card is perfectly aligned to the width of the rest of the content below it in other rows.I have to edit the file of this “Tabbed card” module in the design manager in order to get it to be in line with the rest of the copy on this webpage.
You’ll see at the top of the page where I’ve put a tabbed card section. I need it to be the same width as the rest of the content on the webpage, and I need it to be justified center.
Please help with a css snippet that I can paste into the design manager file. Thank you!
EDIT:
I found that by adding this following snippet, it centers the module and adds the padding to the left and right. But no matter what I try, I can’t get it to be the same width as the rest of the page content.
Hi @TaylorLioy
Thank you for reaching out to the Community!
I’d like to invite some community members who are subject matter experts to join this conversation. @BarryGrennan@SteveHTM@Anton - Would you be able to share any insights on this? Your expertise would be greatly appreciated.
Best,
Victor
Since you’re using Bootstrap, it’s better to avoid custom CSS for layout unless necessary. Instead, can you try updating the HTML of your tabbed card module by wrapping it in the following Bootstrap grid structure like below?
<div class="container">
<div class="row">
<div class="col-sm-12">
<div class="hs-tabs-wrapper">
<!-- Your tab content goes here -->
</div>
</div>
</div>
</div>
This makes sure your tabbed content follows the same grid structure as the rest of your page, maintaining consistent alignment and spacing across all screen sizes, including mobile.
adding padding isn’t a good idea in this case as @FaramarKolivand mentioned.
But since it seems to be an AI generated answer, because of “…since you’re using Bootstrap…” which is only partially right because, Yes, HS is build upon Bootstrap - but it’s using a modified version which is baked into HS and not really accessible, it’s not possible to just simply add a classic bootstrap layout with container>row>col or modify it without creating a custom module or template(s), here’s a better (and easier) way.
As I’d say the module is placed within a full-width section, I’d first check if this is the case.
To check this, check following:
Click on the “tree” icon in the icon sidebar (the one below the “plus”)
Look for the right section
Click on the 3 dots of the section and select “edit”
^ those variables are just examples and might not work.
If your theme is based on something like the Boilerplate, you can find those variables most likely in the theme-override.css and you should place your code in this as well.
I don’t use AI sir, and I am not really using the CMS feature of HubSpot for building web pages. I only inspected the web page in the post and noticed the other sections are wrapped with container > row > col- classes, that’s why I thought why not wrapping the tabbed section with the same Bootstrap grid classes, that’s all. But it’s good to know that HubSpot pages are built with Bootstrap.
It reads like an AI generated text as it has a few and the Ai tester I’m using to get a “second opinion” stated that it’s 100% likely Ai generated. Sorry for that
The padding you’ve added in the CSS—please remove that. Then, in your HTML code, add a <div> right after the <section> and give it the class name ‘container’. This should resolve the issue. We’ve already fixed it on our end and shared a screenshot as well, so you can refer to that. Also, we shared the screenshot of the right HTML code.
in the CSS, which isn’t applied to the tab module. If you want consistent alignment across all sections, please refer to the CSS screenshot we shared and remove the padding styles from it.