View Full Version : question about borders


AngryAndroid
04-17-2004, 08:55 AM
I would like some images to have a border around them, and some other to have none.

how can do this using css?

i tried using border="0" for the ones which shouldn't have a border, but it doesn't work

any ideas?

edit:

also how can i implement 2 borders with different attributes?

AngryAndroid
04-17-2004, 08:56 AM
also how can i implement 2 borders with different attributes?

AngryAndroid
04-17-2004, 09:04 AM
sorrry another question :buckt:

I can't remember the normal html code for making a border round an image, (Ive tried using the search and I still can't find it).

Do you think it's better using the html coding for each image, rather than css?

Rosey
04-17-2004, 09:05 AM
border="0" should work, it depends what your code is.

What you can do is set up classes in your css:

.image1 {border: 1px solid black;}

and in the ones you want to have the border you can put :

<img src="name.jpg" class="image1">

and that should give your the properties of your css.

AngryAndroid
04-17-2004, 11:02 AM
ok it works fine thanks, the class is very helpful