i want all the images in my webpages to have border

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

i want all the images in my webpages to have border

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

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

Post 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>
Rippie
Forum Commoner
Posts: 76
Joined: Sun Jan 10, 2010 11:32 am
Location: Nottingham

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

Post by Rippie »

Brilliant CSS tutorial here: http://www.w3schools.com/css/default.asp

Rippie
Post Reply