Question:

CSS - Multiple DIV Layers

by  |  earlier

0 LIKES UnLike

Hello,

I know some CSS. It appears to be pretty simple. But, I wanted to know when using layers is it possible to create layers within each other. Such as:

Say I have one layer that has a background color of white, that goes down the page. But, within that layer I want to add different items such as a navigation bar on the left, text and information in the center, etc..... Just curious. I know that div allows multiple id's. But, I didn't know if there is anything special to doing this. Any insight is greatly appreciated!

 Tags:

   Report

3 ANSWERS


  1. why dont u do it with dreamweaver! it's extremely easy! you dont have to mess around with the code as dreamweaver have designer view


  2. Sho nuff. A lot of designers rely on that technique actually. The CSS attribute "z-index" controls which div is on top in the order. There can be a quite a bit to it, when it comes to handling positioning, but with a bit of practice you can get it down.

  3. It's very common to have divs within divs.  Just make sure you nest them properly.  

    Although it's possible to give one div more than one ID, that's not really a great idea.  Give as many classes as you want, but only one id, because the id is a unique identifier for only one element. It doesn't make sense to have more than one id.

    On to the Dreamweaver question:  You've already learned why reliance on Dreamweaver is a dangerous thing. It often makes mistakes that you have to fix by hand. Eventually you'll find yourself skipping DreamWeaver altogether and switching to something like Aptana which focuses on code, provides much more coding help than Dreamweaver and - oh, yea - is totally free.

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions