CSS issue

When I reduce the size of width to check for mobile screens, spaces between the words are increasing
No description
8 Replies
☢♬  ŕΔĻ𝔭ᕼ__ј𝐚𝓃  👽☹
<div class="container-fluid welcomeContainer"> <div class="row"> <div class="col-12 welcome-Head"> <h1> WELCOME TO <span>MY SHOP</span> </h1> <p class="welcome-Para"> Lorem ipsum dolor sit amet consectetur adipisicing elit. Assumenda vero minus molestias modi excepturi. Libero modi praesentium ex rem dolorem? Ratione nam temporibus numquam accusamus! Non cumque alias vero repellat. </p> </div> </div> </div> For mobile screens, that;s how it looks
Jochem
Jochem8mo ago
without seeing the CSS, it's hard to say for sure, but welcome-Para probably has text-align: justify; on it. That's what that does
☢♬  ŕΔĻ𝔭ᕼ__ј𝐚𝓃  👽☹
yes it does have justify can't it be justify ?
Shane
Shane8mo ago
delete it and see what happens
Jochem
Jochem8mo ago
justify tries to put as many words as possible on a line without letting the space character take up less than one space character normally does, but when it doesn't fit and inserts a linebreak it automatically spaces all the words out so that the end of the last word is at the very last line
☢♬  ŕΔĻ𝔭ᕼ__ј𝐚𝓃  👽☹
it works when I remove the justify
Jochem
Jochem8mo ago
with narrow lines, and especially with long words in narrow lines, you sometimes get really big spaces there's no fix for that other than not using justify, and therefor not having the right column line up like it does now, because there's just physically no room for more words on that line
☢♬  ŕΔĻ𝔭ᕼ__ј𝐚𝓃  👽☹
okay thanks for your help and quick response
Want results from more Discord servers?
Add your server