Page 1 of 1

i want all the images in my webpages to have border

Posted: Mon Feb 22, 2010 2:10 pm
by adsegzy
Hello friends, i have a website and i will like to create border around every image in the site, am aware i can use CSS but i dont know how to go about it. kindly tell me how to code it and apply it.

regards

Re: i want all the images in my webpages to have border

Posted: Mon Feb 22, 2010 2:12 pm
by John Cartwright
Yes, using CSS this can be accomplished easily. Place this in the <head></head> of your html document.

Code: Select all

<style>
   img { 
      border: 1px solid #000;
   } 
</style>

Re: i want all the images in my webpages to have border

Posted: Tue Feb 23, 2010 4:29 am
by Rippie
Brilliant CSS tutorial here: http://www.w3schools.com/css/default.asp

Rippie