Tagged: x
-
AuthorPosts
-
November 23, 2016 at 9:10 am #1268271
yhshin1020ParticipantHey,
I can’t get one section in my webpage to line up with the rest of the site on small devices
Here’s the picture: http://imgur.com/a/NCEp7
How can I do this only on mobile?
On larger screen it is ok because i have centered the text.
Thanks,
November 23, 2016 at 9:11 am #1268272
yhshin1020ParticipantThis reply has been marked as private.November 23, 2016 at 10:52 am #1268399
RupokMemberHi there,
It seems you have set width for the heading and paragraph for that particular section :
h2.omtraininghead { font-family: "myriad-set-pro_thin"; font-size: 70px; margin-left: auto; margin-right: auto; width: 500px; } #omlessons { font-size: 23px; margin-left: auto; margin-right: auto; max-width: 45ch; overflow: hidden; }You should remove the width and max-width values to get expected result.
Thanks!
November 23, 2016 at 12:34 pm #1268512
yhshin1020ParticipantThis reply has been marked as private.November 23, 2016 at 1:24 pm #1268563
JadeModeratorHi there,
Try to update this code:
h2.omtraininghead{ margin-left: auto; margin-right: auto; width: 500px; }to
@media (min-width: 767px) { h2.omtraininghead{ margin-left: auto; margin-right: auto; width: 500px; } } -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1268271 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
