General Question

tiffanym's avatar

Border around images don't show up?

Asked by tiffanym (1points) 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

Dog's avatar

Can you show us the html code?

jrpowell's avatar

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>

OutOfTheBlue's avatar

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

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther