SitePoint Sponsor |
|
User Tag List
Results 1 to 7 of 7
-
May 24, 2008, 09:30 #1
- Join Date
- Mar 2008
- Location
- Connecticut
- Posts
- 50
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I'm using layers to position, is this "good"
I'm about half way through my web site. I have an arrayed background that fills the screen. My customer wants the web page to have a plain background over that where all the info goes. To do that I have made a layer and given it a plain very pale pale green background. On that I put my text and pictures, sometimes using another layer on top of it to position something exactly. Because this is my first web site I am not proficient using DIVs only to place things, but I really want this to be a "correct" site. I am using CSS all over the place but I am worried that layers might not be the best thing to do. My Sitepoint book "The CSS Anthology 101 Essential Tips, Tricks and Hacks" doesn't mention layers, nor does "Build your own Web Site The Right Way". I am using Dreamweaver and coding where I can. What about layers? Are they OK?
-
May 24, 2008, 11:10 #2
Layer is another word for <div>
-
May 24, 2008, 11:22 #3
- Join Date
- Mar 2008
- Location
- Connecticut
- Posts
- 50
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
hmmmm. Thanks.
-
May 25, 2008, 08:52 #4
-
May 25, 2008, 12:54 #5
- Join Date
- Mar 2008
- Location
- Connecticut
- Posts
- 50
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ahhh. This makes much more sense to me. Thank you very much. In the mean time I am getting better at defining my elements by doing straight mark-up. It's amazing how fast I am learning. I think my learning curve is logrythmic. Thanks to all of you who are willing to help this enthusiastic beginner to learn the right way. My site is really coming along nicely.
-
May 25, 2008, 16:21 #6
A "layer" in XHTML/CSS is commonly referred to as an absolutely positioned div with a z-index. By applying z-index selectors to divs, you can essentially "layer" your divs so that they will display above or below each other. This is accomplished by using the position: absolute; attribute as well, as Centauri just explained.
This must be what susuyaya was referring to when he mentioned layers: an absolutely positioned div with the z-index selector is essentially a layer.Chromatic Sites professional web design
-
May 26, 2008, 04:22 #7
I stand corrected. Thank you.
Bookmarks