GregLassale Posted April 14, 2021 Share Posted April 14, 2021 Site URL: https://gregorylassale.com/ I am trying to reduce the height of a particular banner while keeping the text (inserted via code block and html) vertically centered. Part of the html is: .counter { font-size: 40px; line-height: 60px; font-weight: 100; } Reducing the line-height value works to a point, after which the text is off-center. Any help is greatly appreciated as always. Thanks. Link to comment
tuanphan Posted April 14, 2021 Share Posted April 14, 2021 Hi. Can you share link to page where you have problem? We can help easier 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!) Link to comment
GregLassale Posted April 14, 2021 Author Share Posted April 14, 2021 Hello. https://gregorylassale.com/english#counters and https://gregorylassale.com/french#countersfr for the FR version. Thank you! Link to comment
tuanphan Posted April 14, 2021 Share Posted April 14, 2021 2 hours ago, GregLassale said: Hello. https://gregorylassale.com/english#counters and https://gregorylassale.com/french#countersfr for the FR version. Thank you! Add to Design > Custom CSS /* Counter banner height */ section#counters>div, section#countersfr>div { padding-top: 5px; padding-bottom: 5px; } 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!) Link to comment
GregLassale Posted April 14, 2021 Author Share Posted April 14, 2021 @tuanphan Thank you so much for this and all that you do on the forum. One other question. How can I reduce the space between the counters and text below ("coups of coffee", etc.) ? I tried playing with a few parameters in the html to no avail. Thanks again. Link to comment
GregLassale Posted April 14, 2021 Author Share Posted April 14, 2021 As an alternative to controlling the distance between the counters and text granularly, distributing the two vertically within the container could work. Link to comment
tuanphan Posted April 15, 2021 Share Posted April 15, 2021 23 hours ago, GregLassale said: @tuanphan Thank you so much for this and all that you do on the forum. One other question. How can I reduce the space between the counters and text below ("coups of coffee", etc.) ? I tried playing with a few parameters in the html to no avail. Thanks again. Add to Design > Custom CSS /* space counter - text */ div#counterbox p { margin-top: 0px; } .counter { line-height: 50px; } 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!) Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.