Thanks for the resources, and for taking the time to respond. But I know how to optimize images.
What I'm asking for is a way to change Dreamweaver's default setting when you use the Properties panel to browse and replace an image source. By default Dreamweaver automatically changes the CSS width property to whatever the width of the new image is. I want to change the default setting so that it doesn't change the width property.
If you know how to do this, that would be really helpful.
What I'm asking for is a way to change Dreamweaver's default setting when you use the Properties panel to browse and replace an image source. By default Dreamweaver automatically changes the CSS width property to whatever the width of the new image is. I want to change the default setting so that it doesn't change the width property.
If you know how to do this, that would be really helpful.
By @GabrielCameron
@GabrielCameron in fact you don't have a direct way to do that... but the workaround, is to manually remove the WIDTH and HEIGHT attributes fomr the HTML code, and add an online CSS style to handle width and height as you like.
then when you swap images from the SRC attribute, the WIDTH and HEIGHT attributes wont recreate themselves.
so change
<img src="image-A.jpg" width="400" height="400" alt=""/>
to
<img src="image-A.jpg" style="width:400px;height:400px;" alt=""/>
so when you will change to a different image (from SRC attribute that should stay as
<img src="image-B.jpg" style="width:400px;height:400px;" alt=""/>