gehernando Posted March 25, 2020 Posted March 25, 2020 Site URL: https://turncoat.squarespace.com/home Hello! I have summary block sourcing from a gallery and set to display as a carouseI for just one item. How can I center the Summary Heading "Color of the Week" and the Summary Title "Absinthe" in the center of the image? (see attached example). .sqs-block-summary-v2 { .summary-title{ } .summary-heading{ } }
tuanphan Posted March 25, 2020 Posted March 25, 2020 Can you share link to your site? -- I guess you can try CSS Flex with justify-content: center; align-items: center or CSS position:absolute with transform: translate(-50%,-50%) Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
gehernando Posted March 25, 2020 Author Posted March 25, 2020 2 hours ago, tuanphan said: Can you share link to your site? -- I guess you can try CSS Flex with justify-content: center; align-items: center or CSS position:absolute with transform: translate(-50%,-50%) Sure: https://turncoat.squarespace.com/home and Thanks!
gehernando Posted March 27, 2020 Author Posted March 27, 2020 This seems to be working: .summary-heading { z-index:99; position: absolute; text-align:center; top: 45%; left: 50%; width:100%; transform: translate(-50%, -50%); color:#fff; } .summary-title{ position: absolute; top: 55%; left: 50%; transform: translate(-50%, -50%); font-family:"Adobe Caslon"; color:#fff; }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.