Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1007007
    mathijs84
    Participant

    Hi 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?

    #1007050
    Christian
    Moderator

    Hey 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. 🙂

    #1007156
    mathijs84
    Participant

    thanks, 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.

    #1007221
    Joao
    Moderator

    Hi 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

  • <script> jQuery(function($){ $("#no-reply-1007007 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>