| | |
|
|
|
Layers Not Aligned Correctly |
| message from Chad Keller on 22 Jul 2004 |
I'm using absolute layers on my page but when the page is resized they don't
move with the other objects on the page. Should I be using the snap layers
PVII extension? I'm pretty new so any help is appreciated. Here's a link to
see what I'm talking about.
Thanks
http://www.montpelieresearch.org/updates/updates.htm
|
| Murray *TMM* replied to Chad Keller on 22 Jul 2004 |
Your biggest problem is the absolutely positioned divisions that are in the
table cells (this is a nono) -
11.5px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; color:
#666666;"><a
href="http://www.montpelieresearch.org/mainmenu.htm" methodology
sample</a></div>
<div id="Layer10" style="position:absolute; width:249px; height:34px;
z-index:11; left:
By removing the code for each of these 'layers' from the table, and pasting
it back in either directly under <body> or directly above </body>, part of
your problem will be solved.
Then you will have to worry about the resizing thing. You can either use
SnapLayer to solve that, or if you are comfortable with CSS positioning,
it's really easy (and more bandwidth conservative) to just use CSS.
|
| Chad Keller replied to Murray *TMM* on 22 Jul 2004 |
Thanks for your help. So are you saying to abandon tables completely? That if
I only use layers and absolute positioning that everything will resize
together? This seems too simple. Is there something I am missing?
|
| Murray *TMM* replied to Chad Keller on 22 Jul 2004 |
Not at all. Just get the layers out of the tables. You should never place
absolutely positioned page elements directly into tables.
|
| Chad Keller replied to Murray *TMM* on 22 Jul 2004 |
I used the convert tables to layers command in dreamweaver and this seemed to fix the problem. Can you tell me what problems if any can arise from designing only with layers? Thanks.
|
| Murray *TMM* replied to Chad Keller on 22 Jul 2004 |
Converting from tables to layers has only put you on a different track to
disaster. That command should never be used. My original solution was the
correct one and would have fixed you up in an instant. Now you have wrecked
the code on the page by producing gazillions of little layers all over the
place. Maintenance is impossible.... Sorry.
Given where you are right now, a nearly infinite number of them. Try
changing the text size in your browser as a start. Also, if you were
centering your tables, well, you aren't anymore....
|
|
Archived message: Layers Not Aligned Correctly (Macromedia Dreamweaver Web Design)