Tagged: column padding, mobile view, padding, responsive
-
AuthorPosts
-
February 4, 2021 at 12:41 am #1277487
Hi there,
On a website I have created: http://qxy.6a3.myftpupload.com/treatments/ I have used right and left inner padding on full sized 1/1 columns on the Treatments page, to inset the content from going to wide (making it a better reading experience), however it creates a long very thin column on the responsive/mobile view.Is there some CSS I can add to override this on mobile?
Cheers
KristinFebruary 4, 2021 at 7:02 am #1277569Hey Kristin,
Add this to quick css:@media only screen and (max-width: 767px){ .page-id-957 .flex_column{ padding:0px!important; }}
Best regards,
Jordan ShannonFebruary 5, 2021 at 11:10 pm #1278186Hi Jordan,
Thanks, yes this worked for the ‘Treatments’ page, it looks great. Do you know why in the ‘Special Heading’ the word ‘Medispa’ would be getting cut off at the top? I do have minus padding on the divider line above on the website and this line is not showing on this page or the ‘Skin Insights’ page … presuming this has something to do with it…? (same thing with ‘Skin Insights’ page.
I also tried to apply the same code suppliedabove for the ‘Skin Insights’ page (for the ‘Special Heading’, posts appear fine). It didn’t work, I did use the page ID that was showing – 945.
Cheers
KristinFebruary 6, 2021 at 8:20 pm #1278346Hi Kristin,
https://share.getcloudapp.com/L1uN7nd9 Do you need to remove this space too?
Best regards,
VictoriaFebruary 14, 2021 at 5:08 am #1280370Hi Victoria,
Thanks for your reply. I am probably not too concerned about this space. More so the words being chopped off at the to top of the Special Heading and the special heading aligning with the copy underneath (same on Skin Insights page).
Cheers, Kristin
February 16, 2021 at 10:23 am #1280761Hi Kristin,
Could you please attach some screenshots of the issue?
https://share.getcloudapp.com/nOuloQ0X I would make this show in one column for the smallest screen sizes. What do you think?
Best regards,
VictoriaFebruary 18, 2021 at 5:26 am #1281938Hi Victoria,
I was referencing the headings on this page and the treatments page. Can you let me know how/where I can upload a screenshot and I will share with you?
Cheers
KristinFebruary 19, 2021 at 6:38 am #1282128February 25, 2021 at 12:58 am #1283534Thanks Jordan,
Here are the links to the 2 x images showing the cut off heading and extra spacing on left hand side. If better practice, I am happy to create these using a different method (rather than padding on special heading), if you can let me know what would be the best way for responsive viewing.
https://snipboard.io/H4Q1N2.jpg
https://snipboard.io/GtvRiO.jpgCheers, Kristin
February 28, 2021 at 5:02 pm #1284267Hi Kristin,
Did you remove the code? I am not seeing the same as you have on the screenshots.
Best regards,
VictoriaMarch 2, 2021 at 11:39 am #1284669Hi Victoria,
I haven’t changed anything. When viewing on my iphone it looks like the screenshots I sent you with the words chopped off at the top and the whole of special heading inset (not in line with text below). If I preview online on my mac desktop and choose ‘mobile’ from the dropdown list it doesn’t show the words chopped off, however the heading it still inset. I don’t believe previewing it on ‘mobile’ setting in wordpress really gives the same view as looking on an actual mobile.
Cheers, Kristin
March 2, 2021 at 4:49 pm #1284810Hi Kristin,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (max-width: 767px) { .responsive.avia-safari main.template-page.content.av-content-full.alpha.units { padding-top: 100px; } }
If you need further assistance please let us know.
Best regards,
VictoriaMarch 3, 2021 at 2:56 am #1284919Hi Victoria,
This hasn’t seemed to make any changes. I have previewed on a desktop and also on a iphone and it is still as before. If it is not possible to have the special heading align properly on the responsive site I guess I will have to look at changing them all to another style … or try to make it work without using padding/negative padding to line it up. It just looks fine on the desktop version.
Cheers KristinMarch 3, 2021 at 8:31 pm #1285132Hi pinnicreative,
Please share credentials with us in private.
Best regards,
VictoriaMarch 4, 2021 at 9:41 pm #1285541Hi Victoria,
Login in private below. The words in the ‘special heading’ are no longer cut off at the top, however the padding at the left side is still not overridden. If there happens to be a better way to create the indent on the desktop version (rather than padding) that would reflect correctly on the mobile version I’d be happy to change it.
Cheers, KristinMarch 8, 2021 at 3:52 pm #1286467Hi pinnicreative,
Credentials did not work for me. Could you please update the credentials?
Best regards,
VictoriaMarch 9, 2021 at 4:47 am #1286616Ok, please see below.
March 12, 2021 at 10:47 am #1287630Hi,
Sorry for the late reply. I’ve added this to your Quick CSS box, and it’s applying on your site now:
@media only screen and (max-width: 767px) { div.av-special-heading { margin-left: 0 !important; } .av-subheading_above p { line-height: 16px; } }
Please check on your actual device, to see if it looks better. Make sure that you load the page in an incognito or private browser window, on your actual device.
Best regards,
RikardMarch 15, 2021 at 4:44 am #1288150Thanks Rikard,
This is much better. The only tiny thing it seems to have done is make the special heading on the ‘Medispa Treatments’ page sit right on top of the description below. The ‘Skin Insights’ is perfect – there is a space under the heading before the description. Do you mind checking? I didn’t want to mess with any of the codes you have just added.
Cheers, KristinMarch 18, 2021 at 4:19 am #1288866Hi Kristin,
Thanks for the update. I can’t see that on my end, or I might be misunderstanding you. Could you post another screenshot for clarification please?
Best regards,
RikardMarch 21, 2021 at 11:54 am #1289430Hi Rikard,
Sure, below are the links to what I see on a mobile phone. Notice the heading spacing for ‘Medispa Treatments’ is condensed in comparison to ‘Skin Insights’ – which the spacing is correct. These headings + text below are the same in terms of how they have been made/placed etc, so should look the same.Medispa Treatments: https://snipboard.io/XUgGmQ.jpg
Skin Insights: https://snipboard.io/wKsGcT.jpgCheers Kristin
March 24, 2021 at 6:45 am #1290038Hi,
Thanks for the update, and for the screenshots. I see the same spacing on desktop as well, could you try to add some bottom padding to the Treatments header, in the Styling tab in the element options?
If you need custom CSS, then you can try something like this in Quick CSS:
.page-id-957 div.av-special-heading-h3 { padding-bottom: 15px; }
Best regards,
RikardMarch 25, 2021 at 2:17 am #1290251Hi Rikard,
Sorry I didn’t notice it was showing on the desktop view. I have fixed it, so now the site is fine. Thanks for all your help, this ticket can be closed.
Cheers
KristinMarch 27, 2021 at 1:38 am #1290650Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Override column padding on mobile view’ is closed to new replies.