Sideway BICK BlogSideway BICK BLOG from Sideway

A Sideway to Sideway Home

Link:http://output.to/sideway/default.asp?qno=180200041

Knowledge Base CSS Wrapper

CSS Wrapper

Wrapper and Container

The word container is usually to name a tagged element that is used as the document structure builder for containing document content. A container may contain one, or more than one tagged elements which are grouped together to form a functional structure of a document. While a wrapper is a tagged element that is used as an interface for wrapping around another object to alter the functionality or layout of the wrapped object in the document.

In other words, container usually works with the context of document structure of a ducument and wrapper works with the context of presentation format of a document. CSS wrapper may be in simple, compound and complex forms which suited for simple to complex presentation.

Although a CSS wrapper is usually refered to as an additional tag used to wrap a functional container, sometimes a functional container can also be acted as a CSS wrapper to replace a dummy CSS wrapper when a functional container hold simple structure only.

Cascade, Inheritance, and Inheritance

The cascade, inheritance, and specificity are the most important features of CSS. These features are all based on the parent-child and sibling relationships. Sometimes, these relationships may cause trouble when designing a complex webpage. A CSS wrapper provides a simple solution to tackle these problems by either creating an isolated parent-child or sibling relationship, or breakng an existing parent-child or sibling relationship.

Functions of a CSS Wrapper

Some typical functions of a CSS wrapper are

  • A isolating wrapper is to isolate a contioner as a seperated container such that the unneeded cascade, inheritance, or specificity feature will be stopped by breaking the parent-child or sibling relationship. sibling relationship will be broken
  • A packing wrapper is to pack a functional container as an individual container such that the whole functional container can be modified and reused easily without altering the tagged elements insides a container.
  • A decorating wrapper is to add a decorating out tag to a container such that the presentation of the container can be altered by the additional tag.

Sideway BICK Blog

27/02


Copyright © 2000-2020 Sideway . All rights reserved Disclaimerslast modified on 26 January 2013