Forum Moderators: open

Message Too Old, No Replies

Image position using Netscape

Image position

         

Adam5000

11:55 am on Jul 31, 2005 (gmt 0)

10+ Year Member



Hello everyone and thank you for your help with the other items. You're all fabulous.

I'm working with images on a web page and I need some help with the netscape code.

I've defined an image as a div and I'd like to place it near the center of the screen.

The code below works with internet explorer and I'd like the image to be in the same place when viewed with the netscape browser.

When viewd with the netscape browser, the code below puts the image in the upper left corner of the screen (0,0)

Help.

<html>

<head>
<title>Image1</title>
</head>

<body>

<div id=Image1 style="position:absolute; left=200; top=150;">
<img src="Image 1.jpg">
</div>

</body>

</html>

Span

12:11 pm on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi,

Netscape doesn't know what to do with '200' and '150'. You have to add the units in there (and replace the '=' with a ':').


<div id="Image1" style="position:absolute; left:200px; top:150px;"><img src="Image 1.jpg"></div>