Skip to content

Instantly share code, notes, and snippets.

@rossmc
Created August 28, 2014 10:35
Show Gist options
  • Save rossmc/27f7353dfbd94ad98b32 to your computer and use it in GitHub Desktop.
Save rossmc/27f7353dfbd94ad98b32 to your computer and use it in GitHub Desktop.
makes images & tables responsive on Magento cms pages
// makes images & tables responsive in cms pages
body.cms-page-view .main{
@media screen and (max-width: $bp-s) {
img {
float: none !important;
text-align: center;
min-width: 65%;
}
table, thead, tbody, th, td, tr {
display: block;
width: 100% !important;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment