.custom-img-style-via-templatestyles { border:2px dotted green; } .width200 { width: 200px; height: auto; /* preserve aspect ratio */ }