Question

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

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

1 Answers:


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:

img{
    border: 3px solid red;
}

An example is below:

testimage.png

Answer by Timothy Foster
Rating: 1 (Rate this up!)

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