Paragraphs on mobile compressed
-
Hi!
On mobile, the paragraphs are compressed to a single column in the middle and I cant get the text to fit the screen. Also horizontal scroll appears, which I eliminated in desktop version already. I coud use some help.The page I need help with: [log in to see the link]
-
Hi @eriksd,
Thank you for reaching out to us.
As checked, you’re currently having these lines of CSS code in your child theme’s style.css.
p { padding-left: 150px; padding-right: 150px; }That’s why you got narrower paragraph on mobile screen.
I’d recommend using the Columns block to have more left/right spaces on particular text on your page/post.
Hope that helps.
Regards,
KharisHi!
I tried using columns, but it did not work very well neither on desktop and mobile. A kept the same css padding for p , but this time I set the values in % instead of pixels. And it seems to be working, only on small mobile screen like iPhone SE (1st gen) the content gets a bit out of device viewport.Hi @eriksd,
Thank you for getting back.
You might try using three columns block and insert the text in the second column.
Or, try controlling styles on a specific block by assigning a class name when the block is selected. For example: my-text
https://drive.google.com/file/d/115JHnCUC9cs1FLLHE5Q6O0Sf2t2P6eR_/view?usp=sharing
So we can use CSS media query and apply it to Additional CSS (under Dashboard > Customize). For example:
@media only screen and (min-width: 768px) { .my-text { padding-left: 150px; padding-right: 150px; } }Hope that helps.
Regards,
KharisThank You! I sorted it out by using
.page .page-wrap .content-wrapper,
.single .page-wrap .content-wrapper {
padding: 0;
width: auto;
margin: auto;
}Yeet one issue remains. On mobile the header is shorter that body, I tried to use hide the overflow-x on mobile, but with no success.
On mobile the header is shorter that body, I tried to use hide the overflow-x on mobile, but with no success.
Can you provide a screenshot with some annotations showing the exact location of the issue?
Regards,
Kharishttps://drive.google.com/file/d/11ULdW31tIyZ0p30xriGYu_mCM3iSkdqr/view?usp=sharing
As seen on the image on a mobile view, the header apears a bit narrover than the body and causes horizontal scroll
The issue I am seeing on the homepage, while browsing on mobile (iPhone SE 1st gen) and also when switching to mobile mode using Chrome developer tools – it is possible to scroll to right and get this issue.
The home page is http://www.d21studio.euHi @eriksd,
Thank you for extra details along with the link.
Please try adding this CSS code to Appearance > Customize > Additional CSS from dashboard.
@media only screen and (max-width: 991px) { .content-wrapper > .row { margin-left: 0; margin-right: 0; } }Hope that helps.
Regards,
KharisThank You, Kharis for the code, but unfortunatelty it introduces even nore horizontal scroll om mobiles, the page does not fit in the screen now.
An example here – https://drive.google.com/file/d/1_muz34O1goby3cLORRFiPocEAw6nkfji/view?usp=sharing
Thank you for getting back.
Which web browser are you running? Is it the latest version?
Regards,
KharisOn iPhone I run a Safari 15.1, on PC I use both MS Edge v95.0.1020.53 and Chrome v96.0.4664.45
Hi @eriksd,
Thank you for getting back along with the requested information.
As checked with my web browser’s source code viewer, the suggested CSS code hasn’t ben applied. Perhaps it is due to the cache plugin is blocking the recent changes from appearing in the front end. Please try clearing/flushing cache and run your test. You may also need to flush your web browser’s cache/history as well and restarting it.
Regards,
KharisThank You, Kharis! In the end everything is working fine as intended!
You’re welcome @eriksd!
Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.
Regards,
Kharis
The topic ‘Paragraphs on mobile compressed’ is closed to new replies.
