How do I make the video large and center on a desktop with the text below it? Right now, the video is on the left, and the text/caption is on the right. The theme is Dawn.
http://notagrownup.net
Topic summary
A Shopify store owner using the Dawn theme needs help repositioning a video and text layout. Currently, the video displays on the left with text/caption on the right on desktop; they want the video centered and enlarged with text positioned below it.
Solutions Offered:
- Basic approach: Add CSS to change flex-direction to column and set both media and text items to 100% width
- Desktop-only solution: Wrap the CSS in a media query (
@media screen and (min-width: 750px)) targeting the.custom-video-containerclass - Alternative method: Modify
base.cssfile directly with custom width settings and flex-grow properties
All solutions include code snippets and visual examples showing the desired vertical layout.
Current Status:
The original poster implemented one solution successfully but reports the text is not centered. The discussion remains open with this alignment issue unresolved.
Please add this code to Custom CSS of that section
.image-with-text__grid { flex-direction: column; }
.image-with-text__media-item,
.image-with-text__text-item { width: 100%; }
Hi @Notagrownup
let try to add this custom css to apply this code for desktop only:
@media screen and (min-width: 750px){
.custom-video-container .image-with-text .grid {
flex-direction: column;
}
.custom-video-container .image-with-text__media-item, .custom-video-container .image-with-text__text-item{
width: 100%;
}
}
The result will like:
Hello @Notagrownup
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.
.custom-video-container .image-with-text__media-item {
width: 51% !important;
}
@media screen and (min-width: 750px) {
.image-with-text__media-item--large + .image-with-text__text-item {
flex-grow: 1;
}
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
This was very helpful, but the text isn’t centered. Is that an easy fix?


