Tagged: x
-
AuthorPosts
-
January 12, 2017 at 3:21 pm #1327758
arctwelveParticipantHello,
I’m trying to change the padding within a row based on screen size. I’m having trouble figuring out how to reference the specific row within the Custom CSS section so that I can change the padding based on a media query. Can you please point me in the right direction?
Regards,
TrevorJanuary 12, 2017 at 3:59 pm #1327816
JoaoModeratorHi Trevor
Please provide your URL and point which section you are referring to.
By the way I reccomend you setting your paddling in % instead of px on desktop that way it respnds much better on mobile and tablets, let us know if that works for you.
Cheers
January 12, 2017 at 4:34 pm #1327852
arctwelveParticipantThis reply has been marked as private.January 12, 2017 at 11:00 pm #1328290
LelyModeratorHello Trevor,
Thank you for the complete information. We can always add ID(should be unique- characterize by #) or Class(can be use multiple times – characterized by dot(.) ) on ROW to target spacing. I can see that you have added the class ourprocess_row already. To use that in CSS, please try this:
@media (max-width: 979px){ /*when screen size is 979px or less*/ .ourprocess_row{ padding: 0 10% !important; /*0 is top and bottom padding while 10% is right and left padding*/ } } @media (max-width: 480px){ /*when screensize is 480px or less*/ .ourprocess_row{ padding: 0 5% !important; } }Hope this helps.
January 13, 2017 at 8:54 am #1328793
arctwelveParticipantThanks for your assistance. The CSS is still not working. I added the following (outside of a media query):
.ourprocess_row {
padding: 0% 0% important!;
}It is still not overriding the padding set on the Cornerstone page.
Thanks.
January 13, 2017 at 1:00 pm #1329081
Nabeel AModeratorHi there,
Thanks for writing in! Your CSS is incorrect, please replace it with this:
.ourprocess_row { padding: 0% 0% !important; }Let us know how this goes!
January 13, 2017 at 1:14 pm #1329091
arctwelveParticipantOops. I guess it would help if I could read. It is now working. Thanks so much for your help!
January 13, 2017 at 3:12 pm #1329189
Nabeel AModeratorGlad we could help 🙂
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1327758 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
