jonathanduane2010
asked on
how to resize all the images by css?
Hi,
I am trying to resize all the images by css, but its not working.
how do I do it?
http://iradionortheast.com/ifeed/
I am trying to resize all the images by css, but its not working.
how do I do it?
http://iradionortheast.com/ifeed/
Adding this to the img element in your stylesheet should work:
img {
max-width: 540px; /* customize this; can also be a percentage */
height: auto; /* proportionally overrides the actual height of the image */
}
This affects all images, so you will want to be specific with the CSS reference for certain images to be affected, only.
I could not see your website due to password protection, so I was unable to use your stylesheet as a reference point.
img {
max-width: 540px; /* customize this; can also be a percentage */
height: auto; /* proportionally overrides the actual height of the image */
}
This affects all images, so you will want to be specific with the CSS reference for certain images to be affected, only.
I could not see your website due to password protection, so I was unable to use your stylesheet as a reference point.
ASKER
@ResQTek Nancy
password: ireland. check page "ifeed"
password: ireland. check page "ifeed"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please share your code in jsfiddle.net to check with the issue!