Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #279288
    Bastien Chilloux
    Participant

    Hi

    Can you give me the CSS code to have 0 margin left and right (true full-width) on blocks when displayed on mobile devices <769px ?

    Thank you !

    https://bastienchilloux.com

    #279306
    tikaram
    Participant

    @bastienchill : Can you please try adding the following additional css.

    @media screen and (max-width: 769px) {
    	.site-content > .wrapper {
    		padding: 0 !important;
    	}
    	.wp-block-column {
    		margin:0 !important;
    	}
    	.wp-block-column:not(:only-child) {
    		flex-grow: 1 !important; 
    	}
    }

    Regards,
    Tikaram

    #279309
    Bastien Chilloux
    Participant

    Hi,

    Thank you it works great but it is not only affecting the image (see the contact form on contact page is weird looking now).
    Maybe you could give me a CSS tweak of this code affecting all the pages excluding homepage and contact page ?

    Thank you !

    #279310
    Bastien Chilloux
    Participant

    Adding body:not(.home) adds margin to my homepage ‘true’ full-width columns.
    I’d like those exclusions on homepage to affect only the player on the top.
    Can you please help me on this ?

    #280137
    Bastien Chilloux
    Participant

    What is the new CSS code which doesn’t affect my contact page (page-id-334) ?
    Can you give me a custom one please ?

    #280138
    Bastien Chilloux
    Participant

    Found it myself,
    Thanks

    #280757
    tikaram
    Participant

    @bastienchill : Glad to know that you have found the solution by yourself. Let me know if you have any more issues.

    Regards,
    Tikaram

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Full width image block on mobile’ is closed to new replies.