Tagged: x
-
AuthorPosts
-
May 24, 2016 at 6:07 am #1007007
mathijs84ParticipantHi guys,
I have Essential Grid on http://www.streamads.work-planning.com/channels/
To make it look good on mobile i use this CSS
@media (min-width:0px) and (max-width: 870px) { .esg-cc.eec > .esg-center.esg-flipdownout { position: absolute; top: 10%; line-height: 20px; font-size: 24px; } }I would like to make sure all the titles are always centered. On mobile for example, some of the titles are not centered.
Can we add something to make that correcT?
May 24, 2016 at 6:47 am #1007050
ChristianModeratorHey there,
Please add width:100% to your code so it will be
@media (min-width:0px) and (max-width: 870px) { .esg-cc.eec > .esg-center.esg-flipdownout { position: absolute; top: 10%; line-height: 20px; font-size: 24px; width: 100%; } }Hope that helps. 🙂
May 24, 2016 at 7:54 am #1007156
mathijs84Participantthanks, i also changed the font size to 20px.
If you check on mobile, you see the text is aligned a little to the right instead of center.
May 24, 2016 at 8:24 am #1007221
JoaoModeratorHi There,
I have added 70px of padding on the right and it seems to be centered now:
Please use the code below:
@media (min-width:0px) and (max-width: 870px) { .esg-cc.eec > .esg-center.esg-flipdownout { position: absolute; top: 10%; line-height: 20px; font-size: 24px; width: 100%; padding-right: 70px; } }Hope that helps,
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1007007 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
