image borders do not show up when html opened in word

  • Thread starter Thread starter william.hooper
  • Start date Start date
W

william.hooper

Here is some simple HTML that displays an image with a border aound
it:

<html>
<head>
<title>New Page 1</title>
</head>
<body>
<p>
<img border="1" src="folder.jpg" width="250" height="250"></p>
</body>
</html>

When I import this into Word 2002 I don't see the borders.

Changing the HTML to us CSS with:

<style type="text/css">
..newStyle1 {
border-color: 1;
border-style: solid;
border-width: 1px;
}
</style>

then:

<img alt="" src="logo.gif" width="494" height="80" class="newStyle1" /

does not help.

I havn't found any HTML that puts borders around images and loads OK
in Word 2002.

This is really annoying becuase I am writing an app that exports an
HTML document with images that the user will print in Word.

Please help.... many thanks...
 
Hi William

Here is some simple HTML that displays an image with a border aound
it:

<html>
<head>
<title>New Page 1</title>
</head>
<body>
<p>
<img border="1" src="folder.jpg" width="250" height="250"></p>
</body>
</html>

When I import this into Word 2002 I don't see the borders.

I looked up some HTML tutorial, and what it says looks like your code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Example from SelfHTML</title>
</head>
<body>

<h1>MyTitle</h1>

<p><img src="./Dok1-Dateien/image002.gif" width="320" height="400"
border="4" alt="SomeImage"></p>

</body>
</html>

If I open this in Word 2000, the borders are there. Nowhere near as
thick as in a browser, and depending on the image, they might be hard to
spot, but they are there.

If you really want to go the HTML-route, you could of course create a
border in Word they way you want it to be shown, save as HTML, and then
work backwards ...

HTH
Robert
 
Back
Top