mitch.bolton Posted February 14, 2014 Share Posted February 14, 2014 I’m running into an issue I never expected. Some of my page descriptions are hyphenating in smaller (mobile) layouts. Do you have any tips to avoid it? Link to comment
EmBee Posted June 6, 2014 Share Posted June 6, 2014 You would first need to specify the mobile screen size you are targeting, and the element such as body text, site title or whichever element it's occurring with. It might look something like this for iPad: @media only screen and (max-width: 640px) { body { word-wrap: normal; -webkit-hyphens: none; -moz-hyphens: none; hyphens: none; } You would add this to the CSS Editor. Link to comment
Syl1570047820 Posted September 24, 2014 Share Posted September 24, 2014 That should do the trick if anyone is still wondering: /* Hyphens */ p { -webkit-hyphens: manual !important; -moz-hyphens: manual !important; -ms-hyphens: manual !important; hyphens: manual !important; } Will cover everything, Safari, Firefox, iOS, Chrome… Tested using the Marquee template. Link to comment
bryceevans Posted December 29, 2014 Share Posted December 29, 2014 I tried this and it works great — except one of the descriptions overlapping the parallax images runs outside of the white container. It's only one of them for some reason... The other two work great. Anyone know what would cause this or how I can fix it? Link to comment
Danorexic Posted March 31, 2015 Share Posted March 31, 2015 Thanks! It took me a little searching to find this. I was searching word wrapping, word dashes, etc. This fixed my issues of my index text boxes being wrapped weirdly on an iPad 2 and in Firefox. I didn't have the same issue with Chrome, so weird. Link to comment
linds28 Posted March 3, 2016 Share Posted March 3, 2016 I am using the Montauk template and this did not work for me. Any other solutions? Thanks! Link to comment
eileenpreston100 Posted March 4, 2016 Share Posted March 4, 2016 Thanks! I added h1, h2, h3, p That really helped. Link to comment
chazmoore Posted March 6, 2016 Share Posted March 6, 2016 To have this working for headings and body text be sure to add h1, h2, and h3 like this: p, h1, h2 { -webkit-hyphens: manual !important; -moz-hyphens: manual !important; -ms-hyphens: manual !important; hyphens: manual !important; } Link to comment
jacobhutson Posted March 8, 2016 Share Posted March 8, 2016 nice, this works in pacific. thank you. Link to comment
goodandnice Posted March 10, 2016 Share Posted March 10, 2016 This didn't work for me in Pacific. Do I just paste this into PAGE HEADER CODE INJECTION? Link to comment
Justin Posted March 10, 2016 Share Posted March 10, 2016 @goodandnice Which solution are you referring to? Please make sure that you are only adding answers to posts when you have an answer to provide. Otherwise, you will want to add your response as a comment. Link to comment
fredericG Posted March 10, 2016 Share Posted March 10, 2016 hey thanks this works great if anyone is wondering, i pasted into design/custom CSS Link to comment
theauthenticdan Posted March 11, 2016 Share Posted March 11, 2016 This worked, THANK YOU!!! FYI You need to post this in the Desgin>> Custom CSS portion of your site. Link to comment
liam-cbr Posted March 15, 2016 Share Posted March 15, 2016 This worked for me too, thank you. :) Link to comment
newbee Posted May 12, 2016 Share Posted May 12, 2016 It worked on Thorne. Thank you!Since the text I was wanting to apply the code to is formatted as Header 2 textI used it with h2 only p, h2 { -webkit-hyphens: manual !important; -moz-hyphens: manual !important; -ms-hyphens: manual !important; hyphens: manual !important; } Link to comment
kathleen Posted May 15, 2016 Share Posted May 15, 2016 This worked great! Thanks so much. Link to comment
foodfabulous Posted September 4, 2016 Share Posted September 4, 2016 Sorry to be slow (no coding experience whatsoever) but I am having this in Alex with the description on my banner image. I have tried to copy and paste this in the Advanced section in the banner but nothing happens. Any ideas? Link to comment
supraturbo1778 Posted February 9, 2018 Share Posted February 9, 2018 This worked on Rally, thanks!! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.