Web Hosting Talk







View Full Version : Layers in dreamweaver.


syphris
04-09-2007, 11:19 AM
Hello,

I built as template in photoshop and left out he text. i planed to put the text in the template through dreamweaver using layers but i also want to position the entire template in the center. you know <div align="center"> well when i do that the template beomes center aligned but the layers stay on the right. . how can i get the text layers to move with the template that was made in photoshop? if your wondering .. yes the template has been sliced.

Thanks

Syphris

killapix
04-09-2007, 06:09 PM
by rights everything in the container should move with the container, unless you have some style values attributed to the text that stops them moving.?

crandall87
04-09-2007, 07:10 PM
I agree with the above comment. Your content is definatly inside the container yes? Maybe you should make another div within that container for your text and try moving that to where you want it.

ajstocco
04-09-2007, 09:50 PM
Can you paste the code in here so we can have a look? It's difficult to guess without seeing the code.

ace5p1d0r
04-10-2007, 12:50 PM
Yes the easiest way would be to show us the code.

use the <center> right after <body> and </center> right before </body>, see if that does the trick.

drhowarddrfine
04-10-2007, 04:17 PM
Do NOT use <center>. This has been deprecated for years. The term "layers" can be confusing since this is a Dreamweaver only term so, as stated above, we can't help without the complete code.

ace5p1d0r
04-10-2007, 06:45 PM
Yes <center> has been depreciated. However it still works on all browsers and I thought it easier for him to use <center> rather than confuse himself with the probably many <div>s around the page.

Subfusion
04-11-2007, 11:26 AM
If you want to align your template in the center you will need to create a wrapper which has your template in it. Your HTML could would look like this:


<div id="wrapper">
<p>My content here</p>
</div>


Then on your stylesheet enter the following:


#wrapper {
width: 760px;
margin: 0 auto;
}


If your wrapper needs a margin you can add it, but make sure you have the auto at the end (That is what aligns your template at the center).

Hope this helps :)

syphris
04-17-2007, 03:46 PM
Thanks for all the help. i used the "wrapper" thing and it worked great. the website should be up soon. :)

Thanks
syphris