Jake235 Posted March 17, 2022 Share Posted March 17, 2022 I'm trying to do a regular CSS media query with a basic HTML table using a .container class. This is pure HTML, CSS, and JS, no bootstrap. I seem to not be able to affect the width of the table.container. Is this a limitation on squarespace 7.1? Would I need to inject it through the site in order to do it? /*Trying media queries to target small, and medium screens*/ @media screen and (min-width: 400px) and (max-width: 600px) { .container { position: relative; left: 100px; width: 300px; height: 600px; position: relative; margin-bottom: 400px; background-size: contain; max-width: 100%; max-height: 100%; } } /*For a medium tablet*/ @media screen and (min-width: 600px) and (max-width: 800px) { .container { position: relative !important; left: 100px !important; min-width: 300px !important; max-width: 300px !important; height: 600px !important; position: relative !important; margin-bottom: 400px !important; background-size: contain !important; max-width: 100% !important; max-height: 100% !important; } } Link to comment
tuanphan Posted March 19, 2022 Share Posted March 19, 2022 SS has also class name .container, so you need to add !important to override default CSS Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment