On this post I have set the image height and width and it’s clearly seen in the HTML..
[url removed]
But the browser or WordPress is causing the image to stay same size.
I want it to be smaller?
On this post I have set the image height and width and it’s clearly seen in the HTML..
[url removed]
But the browser or WordPress is causing the image to stay same size.
I want it to be smaller?
You must be logged in to post a comment.
You must write
Inline styling will always take precedence over CSS styling. The width and height attributes are being overridden by your stylesheet, so you need to switch to this format.
You have a class on your CSS that is overwriting your width and height, the class reads as such:
Remove that and your width/height properties on the
img
tag should work.http://www.markrafferty.com/wp-content/w3tc/min/7415c412.e68ae1.css
Line 11:
You can either edit your CSS, or you can listen to Mageek and use INLINE STYLING to override the CSS styling that’s happening:
Avoid setting both width and height, as the image itself might not be scaled proportionally. But you can set the dimensions to whatever you want, as per Mageek’s example.
First of all check if you have the link tag that points towards the .css file like below cuz what happened to me is that i didn’t use the link tag to specify the .css file that i wanted to use because of that i wasn’t able to use it and like an idiot i kept refreshing the page wondering what was wrong with the file. so if you don’t want to embarrass yourself then check that first then try the answers above. Hopefully it was helpful.