Sunday, April 10, 2005

Dynamic Image Border

Is there a way to make all images with links not have a border? Is this possible using css or do I have to use html on every tag?

You can do it either way, CSS is much easier because you just have to add class=classname and then define the element classname in your style sheet, doing it this way you can build the class into a dynamic statement.

.pictureborder {
border: dotted #FFFF66;
}

And in the page you can add the class like this:

img src="picture.jpg" class="pictureborder"

0 Comments:

Post a Comment

<< Home