View Full Version : Bordered Images?


AdidasGuy
07-20-2003, 10:35 PM
Is there a CSS code that you can place on your <head> tag that will give ALL of your images a solid black border instead of adding the code to every single image on your page? Thanks...

-AdidasGuy

kittycat
07-20-2003, 10:43 PM
img { border: 1px solid #000000; }

AdidasGuy
07-21-2003, 02:59 PM
Thank you kittycat, it works!

-AdidasGuy

AdidasGuy
07-21-2003, 03:29 PM
Sorry, one more question...If I were making a fanlistings page on my site and added the CSS code...

<style type="text/css">
<!--
img { border: 1px solid #000000; }
-->
</style>

How would I add on these codes into the CSS above (so I don't have to type in all of that for every single image on my page and slow the computer down)

border="0"
width="100"
height="35"
hspace="7"
vspace="1"

Thanks for your help!

-AdidasGuy

MaGiCSuN
07-21-2003, 03:33 PM
try this:

<style type="text/css">
<!--
img { border: 1px solid #000000; width: 100px; height: 35px; hspace: 7px; vspace: 1px; }
-->
</style>

Love,
Mirna

AdidasGuy
07-21-2003, 07:20 PM
Thanks! The width and the height work, but the vspace and hspace don't...But that's okay, I'm not going to put it on anyway.

-AdidasGuy