Positioning with CSS is not easy, but with some work layered blocks can effectively be centered on the screen of all browsers. Using layers in table cells and resizing the screen doesn't have to cause problems. Layers can easily flow withing a table cell by using realtive positioning.
I have tried over and over to use them and never get the result I like. I have been using tables since before there were WYSIWYG tools and I can always do exactly what I want. CSS is great for controlling fonts, text, colors, and keeping a site look consistant, as far as I am concerned. But layers just don't do it for me and probably never will. And just because something is new and different and cool is not a reason to use it. Is it effective? Does it reduce the code size? Is it easy for someone else to understand your code? Can someone else edit it? Can it be used in a content management system? Many of our clients use CMS and if they can't edit it, it is useless.
exist, are published, and have been available for quite some time now. To center a layer, or div, you use CSS. You use tables for data presentation. HTML is only part of building a website -- any website built without it is the sign of a rank amateur.
Submitted by Lee Fleming on Tue, 10/10/2006 - 08:09.
If you are like me and have clients that wish to do simple edits to their site(s) - tables offer one huge advantage. The inexperienced client can much easier select text or an image in a table cell and replace the same. While this can be done with CCS based layout and / or Contribute or Co-Author, tables remain easiest and simplest. Occams razor.
Actually you can center layers by using a css tag. basicly set left to 50% and then take half the width of the layer for example lets say it was 500px wide so you would se the left margine -250 and it will be centered :)
Dear Sirs/Madams,
This is a good article that I was waiting for. I would like to thank the author, for publishing it on the web.
Best regards,
Pulack Ghatack
Dhaka, Bangladesh
ghatack@gmail.com
Author should learn about CSS and not rely on tools alone
Positioning with CSS is not easy, but with some work layered blocks can effectively be centered on the screen of all browsers. Using layers in table cells and resizing the screen doesn't have to cause problems. Layers can easily flow withing a table cell by using realtive positioning.
I Hate Layers
I have tried over and over to use them and never get the result I like. I have been using tables since before there were WYSIWYG tools and I can always do exactly what I want. CSS is great for controlling fonts, text, colors, and keeping a site look consistant, as far as I am concerned. But layers just don't do it for me and probably never will. And just because something is new and different and cool is not a reason to use it. Is it effective? Does it reduce the code size? Is it easy for someone else to understand your code? Can someone else edit it? Can it be used in a content management system? Many of our clients use CMS and if they can't edit it, it is useless.
Web Standards
exist, are published, and have been available for quite some time now. To center a layer, or div, you use CSS. You use tables for data presentation. HTML is only part of building a website -- any website built without it is the sign of a rank amateur.
Tables have one giant advantage...
If you are like me and have clients that wish to do simple edits to their site(s) - tables offer one huge advantage. The inexperienced client can much easier select text or an image in a table cell and replace the same. While this can be done with CCS based layout and / or Contribute or Co-Author, tables remain easiest and simplest. Occams razor.
I am neutral the Layers Concept
Since I am using GoLive 6.0, I wonder how layers vs tables article relates GoLive? I know Adobe recently purchased Dreamweaver product line.
ADUBIN
GREAT!!!
This is the kind of article that i want i expect to find on internet!!!
Regards,
Centering layers
Actually you can center layers by using a css tag. basicly set left to 50% and then take half the width of the layer for example lets say it was 500px wide so you would se the left margine -250 and it will be centered :)
Useful article
Dear Sirs/Madams,
This is a good article that I was waiting for. I would like to thank the author, for publishing it on the web.
Best regards,
Pulack Ghatack
Dhaka, Bangladesh
ghatack@gmail.com