Answer to…

How can I give every image on my site a border without having to define it in the image style on the page?

Answer by Timothy Foster
rating: +1+x

Since images use the <img> tag, you can specify using CSS the img type selector. For instance, the below would give all images a red border:

    border: 3px solid red;

An example is below:


This is not a <HTML>-CSS reference base. For that we direct you to other excellent places on the web: CSS-tutorials via Google

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License