On Wed, 20 Oct 2004 18:33:01 GMT, Ed Striepeke <ed@mapsoftware.com> wrote:
I'm new to css.
How do you code in a style sheet for 3 images?
Same as for one, but do it 3 times. :)
You can class or id the image elements to do different things.
Ex. With HTML
<img class="dog" height="50" width="40" alt="My dog Sparky likes his
rubber ball.">
<img class="cat" height="70" width="80" alt="My cat Barney can sleep in
his water dish.">
you could use these CSS selectors
img {styles will affect all img elements}
img.dog {styles affect only dog class images}
..dog {styles affect any element with class dog}
For the above, I might do this:
img {border: 3px outset blue;}
..dog {float: right;}
..cat {float: left;}
The first sets all images to have a border. The second floats only the dog
right, the third floats only the cat left.
I think this is what you were asking about. Reply if I missed something.