Border around images don't show up?
Asked by
tiffanym (
1![points](//d3phpakcjc7x1x.cloudfront.net/images/v2/star.png)
)
November 29th, 2009
I’ve added HTML coding to create a border around an image. The border shows up in my web editor, but once I save the coding and launch the site in a separate window, the borders do not show up. Why is this?
Observing members:
0
Composing members:
0
3 Answers
Can you show us the html code?
Yup. Seeing the code would be ideal. Your editor is probably setting a master style that overrides things. Something like this will work.
<!DOCTYPE HTML>
<html lang=“en”>
<head>
<meta http-equiv=“content-type” content=“text/html; charset=UTF-8”>
<style type=“text/css”>
img.dotted {
border-style:dotted;
border-width:5px;
}
</style>
</head>
<body>
<img class=“dotted” src=“http://static.reddit.com/reddit.com.header.png”>
</body>
</html>
Could also be the browser your using, almost every Browser reads the code and interprets it differently. When coding or making web sites it’s always best to use many different browsers and test the code on all of them before publishing..
Answer this question ![sending...](//d3phpakcjc7x1x.cloudfront.net/images/v2/ajax-loader.gif)
This question is in the General Section. Responses must be helpful and on-topic.