News

How to Add an Image to a CSS File. Web pages normally add images using the inline HTML "img" tag. ... Open the Web page where you want to insert the image. Add the following code to insert the image: ...
This code creates a CSS class named redBorder. If one of your HTML img tags references this class, site visitors see a solid red border around the image when viewing it on your webpage.