View Full Version : Layer keeps moving to the left... help please!

11-16-2006, 11:02 PM
Hi All,

Can anyone please help?

I have placed an image onto my index page and centered it. I now want to place another image on the top of it. I make another layer and insert the image into that layer. When I view the page on my browser, the new image sits on the left side of my screen.

Can anyone please help?

Many thanks in advance.

11-17-2006, 01:01 AM
post the code.

11-17-2006, 01:20 AM
Rustybin, I'm pretty sure I know what's going on. Either insert a linebreak after the first image, or turn them both into block elements with CSS.

11-17-2006, 08:10 AM
Thanks very much for the help guys. I've inserted a line break without any change.

Here is the code for the page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

<body bgcolor="#333333">
<div align="center">
<table width="70%" border="0">
<td><div align="center"><img src="wbsite_template.jpg" alt="" width="760" height="1013" border="0" usemap="#Map"></div></td>
<map name="Map">
<area shape="rect" coords="327,134,388,175" href="index.html">
<area shape="rect" coords="398,133,495,175" href="page_corporate.html">
<area shape="rect" coords="504,134,561,174" href="page_show.html">
<area shape="rect" coords="431,280,432,281" href="#">
<area shape="rect" coords="568,133,633,174" href="page_movie.html">
<area shape="rect" coords="645,134,721,173" href="page_contact.html">

11-17-2006, 08:17 AM
i have copied your code to DW and i think your looking at this from the wrong angle

you have a massive jpg as your web page and you are defining clickable areas using image maps

the image is 760 x 1013 !

please post a link to this site so i can advise on how to make this allot better

11-17-2006, 09:41 AM
Thanks so much for the speedy reply! I've posted a rough of the site at:


If you click on the movie button, you'll see what I mean about the wmv file to the left of the screen.

Many thanks for the help.


11-17-2006, 12:44 PM
That is just one large jpg.. with an absolutely positioned layer (which does not work with a centered design!) This is wrong in so many ways..

11-17-2006, 01:02 PM
your content needs to be in html so that it can be indexed

you need to rethink this completly

11-17-2006, 02:02 PM
Can you recommend an easy to understand book? My advice would be to use tutorials like the ones we have here at dreamweaverclub.com together with the developer center at adobe http://www.adobe.com/devnet/dreamweaver/. I don't think you should buy a book until you've been through the DW manual/help files, it's there for you now, and you already paid for it. Also look at other websites and view source to get an understanding of how the websites are built up.
If this is a paid job you're doing?

11-17-2006, 02:24 PM
or maybe you could magic a web designer up ! :grin:

Is that you Russ?

Russ Stevens = rustybin.

detective dj on the case

only joking Russ :lol: :lol: :lol:

11-17-2006, 06:06 PM
Yes, thats me! I've been using a really old site created years ago and want to run it myself, as changes are always a real pain to get sorted. At the moment I've just done a temp. site using Mac's Iweb software (up at the moment), which is easy to use, but very limiting.

Thanks for the suggestions. I'll start with the manual that comes with the software and also look at the tutorials on here.

Thanks once again for the help though.


11-17-2006, 06:29 PM
get a good book

also take a look around the web for ideas > www.cwd.dk (http://www.cwd.dk)
to see what others are doing and to get inspiration

Then if you see something you like learn that technique

we are here to help if you need it