pinkwaz
asked on
photo border color
I'm adding borders to photos in a gallery page, but can't seem to change the color from black. Is there a way to do it in Dreamweaver 3?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I agree with adilkhan. Just a couple of notes:
- If you use the table thing, remember to give the image a "0" border.
- I would go with the CSS style because of it's simplicity and several advantages, but I would set the style in the header (inside the <HEAD> </HEAD> tags):
************************
<style type="text/css">
<!--
.ImageBorder {
border: 2px solid #990000;
}
-->
</style>
************************
So you can simply assign the class to all your images and make the changes only in the style declaration, your images would look like:
<img src="one.jpg" width="149" height="70" class="ImageBorder">
<img src="anotherone.jpg" width="250" height="120" class="ImageBorder">
Whenever you want to change the color or the border width, you just have to change the
border: 2px solid #990000;
declaration.
Best regards,
Esopo.
- If you use the table thing, remember to give the image a "0" border.
- I would go with the CSS style because of it's simplicity and several advantages, but I would set the style in the header (inside the <HEAD> </HEAD> tags):
************************
<style type="text/css">
<!--
.ImageBorder {
border: 2px solid #990000;
}
-->
</style>
************************
So you can simply assign the class to all your images and make the changes only in the style declaration, your images would look like:
<img src="one.jpg" width="149" height="70" class="ImageBorder">
<img src="anotherone.jpg" width="250" height="120" class="ImageBorder">
Whenever you want to change the color or the border width, you just have to change the
border: 2px solid #990000;
declaration.
Best regards,
Esopo.
Does the photo itself have a border? Anything you do in HTML isn't going to do anything to the actual graphic.
<img src="images/aktitle.jpg" style="border-style: solid; border-color: #FFFFFF" border=10 alt="" align="left">