//If you wish to apply this on both desktop and mobile #blockID { max-width:150px; margin:auto; } //If you wish to apply this on mobile only @media screen and (max-width:767px) { #blockID { max-width:150px; margin:auto; } }
//If you wish to apply this on both desktop and mobile #blockID { max-width:150px; margin:auto; } //If you wish to apply this on mobile only @media screen and (max-width:767px) { #blockID { max-width:150px; margin:auto; } }