+ 1
How do i change an image border color?
2 Answers
+ 1
img {
border-color: res;
}
schould work
0
The proper way to do it would be to use an external style file, but for the scope of where this lesson is at you would put style tags in the head like below. You identify the img tag as the tag to be styled. By doing it the way all your images have the same border. The 3px sets the border width to 3px and can be made smaller or bigger. Solid creates a solid line and red makes it red. It is best to use hexidecimal to identify the color as most browser support it. A hashtag is always used before calling the hexidecimal value and a semicolon is always used to end the statement. Hope that helps.
<head>
<style>
img {
border: 3px solid #FF0000;
}
</style>
</head>