PDA

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


rustybin
11-17-2006, 12:02 AM
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.
Russ

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

domedia
11-17-2006, 02: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.

rustybin
11-17-2006, 09: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">
<html>
<head>
<title>main</title>
<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();
}
MM_reloadPage(true);
//-->
</script>
</head>

<body bgcolor="#333333">
<br>
<div align="center">
<table width="70%" border="0">
<tr>
<td><div align="center"><img src="wbsite_template.jpg" alt="" width="760" height="1013" border="0" usemap="#Map"></div></td>
</tr>
</table>
<br>
</div>
<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">
</map>
</body>
</html>

davidj
11-17-2006, 09: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

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

www.russstevens.co.uk

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.

Best,
Russ

domedia
11-17-2006, 01: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..

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

you need to rethink this completly

domedia
11-17-2006, 03: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?

davidj
11-17-2006, 03: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:

rustybin
11-17-2006, 07: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.

Best,
Russ

davidj
11-17-2006, 07: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