A user is trying to center a call-to-action button on their homepage hero slider using a premium theme called “Bookmax” from ThemeForest. The theme creator is unresponsive, prompting the user to seek community help.
Primary Issue:
The button appears slightly off-center to the right instead of bottom-center on the slider
Multiple CSS solutions successfully centered the button on desktop view
However, all initial solutions failed to work on mobile view
Solutions Provided:
Several community members (ExpertRookie, KetanKumar, PageFly-Richard, Litos, GemPages) offered CSS code snippets to add to dt-framework.css, dt-custom.css, or theme.liquid files. Common approaches included:
Removing transform properties
Adjusting margins
Using flexbox justify-content properties
Resolution:
After multiple iterations, Litos provided a mobile-specific CSS solution using a media query (@media screen and (max-width: 576px)) with justify-content: flex-end. The user confirmed this final solution worked, resolving both desktop and mobile alignment issues.
Status: Resolved - button now properly centered on both desktop and mobile views.
Summarized with AI on November 25.
AI used: claude-sonnet-4-5-20250929.
Have a “E-Book” call to action button on the homepage slider section.
Issue 1: Need to Center a button on hero slider.
I have tried everything i could think of to get this button to align to the bottom center (see screenshot below) of the screen.
No luck, it just shows up slightly off center to the right of the centerline of my page. It’s driving me up a wall trying to fix this.
I’m using a premium theme from www.themeforest.net, it’s called “Bookmax”
The theme creator is not being responsive or providing any support whatsoever.
Reaching out here in the community for a coding solution.
Thanks in advance for reading this.
Hi @ChadlyGains
You can try follow this path:
Themes => edit code => asset => dt-framework.css
and add this code to bottom of the file dt-framework.css
.slider-content > div {
transform: translate(0)!important;
}
Hi GemPages, I tried the new code but still just desktop and no mobile.
Open to any further suggestions, appreciate your time in responding to my issue!