gray Posted September 4, 2022 Share Posted September 4, 2022 Part of a module needs some CSS adjusting. It has 4 columns displaying favourite products. But the images come out very small. Using Firefox I add some CSS code that makes the columns display images correctly. However when I enter the code into a CSS overide module, it does not change anything, and the actual CSS code has not changed. Any advice as to why @media (min-width: 992px) .col-lg-3 { max-width: 100%; } does not work. Link to comment Share on other sites More sharing options...
ComGrafPL Posted September 4, 2022 Share Posted September 4, 2022 1 godzinę temu, gray napisał: Part of a module needs some CSS adjusting. It has 4 columns displaying favourite products. But the images come out very small. Using Firefox I add some CSS code that makes the columns display images correctly. However when I enter the code into a CSS overide module, it does not change anything, and the actual CSS code has not changed. Any advice as to why @media (min-width: 992px) .col-lg-3 { max-width: 100%; } does not work. Have you tried in custom.css? Also, did you cleared the cache after? 1 Link to comment Share on other sites More sharing options...
endriu107 Posted September 4, 2022 Share Posted September 4, 2022 3 hours ago, gray said: @media (min-width: 992px) .col-lg-3 { max-width: 100%; } You shouldn't change native bootstrap class, it will have affect in other elements in your theme. Link to comment Share on other sites More sharing options...
gray Posted September 4, 2022 Author Share Posted September 4, 2022 Yes browser and PS caches cleared. Tried to enter the csscode into the themes custom.css but it has no effect. 4 hours ago, endriu107 said: You shouldn't change native bootstrap class, it will have affect in other elements in your theme. If only I could get it to change something, but nothing changes. I must assume that this css code cannot be changed. Link to comment Share on other sites More sharing options...
Prestachamps Posted September 5, 2022 Share Posted September 5, 2022 Hi, for the image you should use specific selector for the image and not taa generic Bootstrap column selector. Can you send me the URL of your page?so I will be able to send you back the image selector class(or it's parent class, depending on design) (or ID) that you should use to implement style to it in CSS. Have a nice day, Leo. Link to comment Share on other sites More sharing options...
idnovate.com Posted September 7, 2022 Share Posted September 7, 2022 Curly brackets are missing: @media (min-width: 992px) { .col-lg-3 { max-width: 100%; } } Link to comment Share on other sites More sharing options...
gray Posted September 9, 2022 Author Share Posted September 9, 2022 Oh dear, many thanks for the curly brackets. I should have noticed. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now