newcoder1010 Posted September 15, 2016 Share Posted September 15, 2016 Hi, I have this css. I simply like all the images to be this size. Some works some dont depending on the original size. I will upload different sizes image but I am trying to have css that will make all images below size. HOw can I force all images to be below sizes? .page-node-880 .field-name-field-productimage img {width: 247px; height: 150px; } Link to comment Share on other sites More sharing options...
dsonesuk Posted September 15, 2016 Share Posted September 15, 2016 All img elements with parent element class 'page-node-880', of child element 'field-name-field-productimage' should follow this rule, and show as these set dimensions no matter what original size. Unless overidden somewhere else or by inline style attribute, no matter what the attribute 'height' or 'width' values are. 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