CSS Advantages and Disadvantages – Part 2
Though CSS has its strengths, it also has its weaknesses. Web professionals that used CSS as their base for layout designing and editing have also cited some drawbacks upon relying heavily on the style sheet language. Here are a short list of the some disadvantages of using pure CSS on web layouts and designs.
Collapsing Margins – Margin collapsing is, while well-documented and useful, also complicated and is frequently not expected by authors, and no simple side-effect-free way is available to control it.
No Expressions – There is currently no ability to specify property values as simple expressions (such as margin-left: 10% – 3em + 4px;). This is useful in a variety of cases, such as calculating the size of columns subject to a constraint on the sum of all columns.
Lack of Variables – CSS contains no variables. This makes it necessary to do a “replace-all” when one desires to change a fundamental constant, such as the color scheme or various heights and widths.
Inconsistent Browser Support – Different browsers will render CSS layout differently as a result of browser bugs or lack of support for CSS features. Numerous so-called CSS “hacks” must be implemented to achieve consistent layout among the most popular or commonly used browsers. Pixel precise layouts can sometimes be impossible to achieve across browsers.
Vertical Control Limitation – While horizontal placement of elements is generally easy to control, vertical placement is frequently unintuitive, convoluted, or impossible. Simple tasks, such as centering an element vertically or getting a footer to be placed no higher than bottom of viewport, either require complicated and unintuitive style rules, or simple but widely unsupported rules.
Control of Element Shapes – CSS currently only offers rectangular shapes. Rounded corners or other shapes may require non-semantic markup. However, this is addressed in the working draft of the CSS3 backgrounds module.
Poor Layout Controls for Flexible Layouts – While new additions to CSS3 provide a stronger, more robust layout feature-set, CSS is still very much rooted as a styling language, not a layout language.
Lack of Column Declaration – While possible in current CSS, layouts with multiple columns can be complex to implement. With the current CSS, the process is often done using floating elements which are often rendered differently by different browsers, different computer screen shapes, and different screen ratios set on standard monitors.
No of Multiple Backgrounds per Element – Highly graphical designs require several background images for every element, and CSS can support only one. Therefore, developers have to choose between adding redundant wrappers around document elements, or dropping the visual effect.
Though a number of difficulties, drawbacks, and disadvantages were found through use of “pure” CSS, its usefulness in web design is still apparent in other ways. Because of its accessibility, web content for mobiles phones and PDAs became accessible because of CSS. CSS consumes lesser bandwidth. And with CSS, virtually all of the layout information resides in one place: the CSS document. Because the layout information is centralized, these changes can be made quickly and globally by default.
Margarette Mcbride is the president of Optimind Web Design and SEO, a web design and seo company in the Philippines. Optimind specializes in building and promoting websites that are designed for conversion.
Article Source:http://www.articlesbase.com/web-design-articles/advantages-and-disadvantages-of-using-css-833019.html

