Posted: Thu Feb 16, 2006 2:35 am Post subject: Dreamweaver Layers
I found the easiest way to create my site was to use a Layer for the banner, a layer for links on the left, and to make this a template. I would then use the middle as an editable region.
Then, I heard grumblings about layers being not so good and then read the following on the Macromedia's webpage:
you may be left with the idea that using layers offers both a convenient and effective method of building a website, but unfortunately you would be wrong. The main reason why using layers isn't the best approach to structure your web pages is because Dreamweaver includes the CSS styles within the DIV element (inline CSS).
When Should You Use Layers?
Because Dreamweaver layers consist of absolutely positioned elements and their CSS styles are written inline, they are not considered the best way of designing pages using CSS. Here are a couple of reasons why you may still want to use the Layers tool:
You need to create basic animation.
You need to create rapid page mock ups.
Wow - well that screws my entire method of making webpages. Since I have absolutely no clue how to approach this in any other manner, I could use a poop load of help. What is my alternate approach.
As an example, one of the sites I created using layers template is www.shoresensation.com .... Should I start from scratch? What do I need to learn? Someone please help me as I have about 4 projects I'm ready to start and don't want to continue until I'm doing it right!
Or, perhaps the layers aren't as big of a problem as I am making them?
You can use layers fine; CSS is rendered well in current browsers so you shouldn't have problems; it provides cleaner code than tables do; loads faster in most cases; and the spiders love them.
Macromedia knows nada about building sites for spiders; just keep the css in an external css style sheet so you can change it sitewide if needed and enjoy.
Debs _________________ Learn how to turn keyphrases into quality, well-targeted articles your visitors and SE's will love with Gary Antosh's new ebook "Web Content Made Easy!"
What you have done here is okay, especially if this is the only location where this style applies. However, to use CSS to its full potential, you can put the style in your CSS file and use the style on any page without having to rewrite the code. Even thought you are using the page as a template, and you can change the template and subsequently every page that uses the template, it is easier and more logical to use an external CSS file.
You can also streamline your code by a putting your JavaScript in a separate folder the same as your css file. The process is the same as the css file. Copy all the js code minus the script tags and save the file with a .js extension.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Your host: Allan Gardyne. Earning a good living from affiliate
programs since 1998.