geearias Posted March 20, 2023 Share Posted March 20, 2023 Hey all - I started helping this client with the wrong code for the looping rotating text in their subheader. I've been able to fix most of it except it's wrapping on mobile but wrapping incorrectly on desktop (780+). There's also too much padding between the header and the subheader. Could someone please help? https://packtraining.com/ Link to comment
geearias Posted March 20, 2023 Author Share Posted March 20, 2023 7 minutes ago, geearias said: Hey all - I started helping this client with the wrong code for the looping rotating text in their subheader. I've been able to fix most of it except it's wrapping on mobile but wrapping incorrectly on desktop (780+). There's also too much padding between the header and the subheader. Could someone please help? https://packtraining.com/ Oops. Looks like something I did is causing this big error as well. See screenshot attached. HUGE padding before the website appears. Only seems to be happening on desktop? Help? Link to comment
geearias Posted March 20, 2023 Author Share Posted March 20, 2023 19 minutes ago, geearias said: Hey all - I started helping this client with the wrong code for the looping rotating text in their subheader. I've been able to fix most of it except it's wrapping on mobile but wrapping incorrectly on desktop (780+). There's also too much padding between the header and the subheader. Could someone please help? https://packtraining.com/ Looking to get some urgent help on the above @tuanphan Link to comment
geearias Posted March 23, 2023 Author Share Posted March 23, 2023 Bumping this up to hopefully get some help! Link to comment
geearias Posted March 24, 2023 Author Share Posted March 24, 2023 @creedon any chance you could help? Thanks in advance! Link to comment
Mark.Hook Posted March 24, 2023 Share Posted March 24, 2023 Try plugging this into your Custom CSS and see if it does the trick for you... @media screen and (min-width:800px) { .sp-headline.slide span { vertical-align: top; } span.sp-words-wrapper {width: calc(100% - 250px) !important;} h6.sp-headline.slide { margin-top: 20px; } } Lead Developer at [Hook Creative][1] in Springfield, MO. [1]: http://www.hookcreative.co Link to comment
geearias Posted March 24, 2023 Author Share Posted March 24, 2023 1 minute ago, Mark.Hook said: Try plugging this into your Custom CSS and see if it does the trick for you... @media screen and (min-width:800px) { .sp-headline.slide span { vertical-align: top; } span.sp-words-wrapper {width: calc(100% - 250px) !important;} h6.sp-headline.slide { margin-top: 20px; } } Thanks for the help. Unfortunately, it made it wrap into 3 lines now. See attached. Link to comment
Mark.Hook Posted March 24, 2023 Share Posted March 24, 2023 Can you give me a screenshot of the whole page? Lead Developer at [Hook Creative][1] in Springfield, MO. [1]: http://www.hookcreative.co Link to comment
Mark.Hook Posted March 24, 2023 Share Posted March 24, 2023 Actually, I may know what's happening. Try this and see if it gets it closer... @media screen and (min-width:800px) { .sp-headline.slide span { vertical-align: top; } span.sp-words-wrapper { width: 550px !important; white-space:norwrap !important; } h6.sp-headline.slide { margin-top: 20px; } } Lead Developer at [Hook Creative][1] in Springfield, MO. [1]: http://www.hookcreative.co Link to comment
Solution Mark.Hook Posted March 24, 2023 Solution Share Posted March 24, 2023 Ok, sorry for all the responses, but this code should actually work better. It's very similar to what's above, but a bit more sound. @media screen and (min-width:800px) { .sp-headline.slide span { vertical-align: top; } span.sp-words-wrapper { width: 500px !important; } h6.sp-headline.slide { margin-top: 20px; } .sp-words-wrapper b { white-space: nowrap !important; } } Lead Developer at [Hook Creative][1] in Springfield, MO. [1]: http://www.hookcreative.co Link to comment
geearias Posted March 27, 2023 Author Share Posted March 27, 2023 Thank you @Mark.Hook! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment