A user seeks to right-align a custom HTML section on desktop while keeping it properly displayed on mobile. The section currently appears far left on desktop but should align below share icons, matching the layout of another product page on their site.
Initial Attempts:
Multiple helpers offered CSS code snippets targeting .grid with justify-content: center or right
These solutions were added to theme.liquid, base.css, or custom CSS sections
None achieved the desired alignment matching the reference page
Working Solution:
Instead of using a separate custom HTML section, the user added the HTML content directly into the product description field
This approach automatically inherits the proper alignment and width matching the “Add to Cart” button area
The solution successfully replicates the layout from the reference product page
Current Status:
Desktop alignment now works as intended
Minor follow-up issue: On mobile, the content appears cramped and touches screen edges
User requests help adjusting padding/spacing for mobile display
Discussion remains open awaiting screenshot and further mobile optimization guidance
Theme Context: User is working with Beautify theme (trial version expiring)
Summarized with AI on November 16.
AI used: claude-sonnet-4-5-20250929.
I have a custom HTML section on my website. It shows perfectly fine on mobile. However, on desktop it shows to the far left. I want to align it to the right below my “share icons”.
Okay that is great, I added the code but that’s not how I want it. I want the alignment to look exactly like this page here https://theurbanoasis.shop/products/posture-corrector-belt : I am using debeautify theme here, and since the trial version is expiring I want to have a custom code which is able to align it like this.
I want the alignment to look exactly like this page here https://theurbanoasis.shop/products/posture-corrector-belt : I am using debeautify theme here, and since the trial version for debeautify is expiring I want to have a custom code which is able to align it like this.
I want the alignment to look exactly like this page here https://theurbanoasis.shop/products/posture-corrector-belt : I am using debeautify theme here, and since the trial version is expiring I want to have a custom code which is able to align it like this.
Hi, still not aligned. It doesn’t flow correctly. See how everything is left aligned with the “ADD to cart button” and of the perfect width on this https://theurbanoasis.shop/products/posture-corrector-belt page but it does not show the same way after adding your code here. Also there is a unnecessary " grey line" below the share icons which I’d like to remove