I've recently been working on my wordpress site and have made a change to how I handle image sizes. I've been removing the width and height attributes when adding images, as they are automatically added. Instead, I've been using the following code in my stylesheet to size the images:
.foo img {
max-width:500px;
width:100%;
}
After doing some research, I found that the inline attributes can actually help with page loading times. This got me thinking:
- Should I stick with using just one method, or should I use both?
- Will the inline attributes override the CSS styles?