How to – CSS website tutorial
A wrapper, also called a container, can be used for many reasons and allows the designer much greater flexibility when laying out a web page. In this CSS wrapper tutorial, I will go over some of the ways you can use this wrapper in your web page design.
Cascading style sheets are the newest programming language. And adding these design elements to all your HTML will provide you with the optimum flexibility in your web page building efforts.
While learning CSS does have a bit of a learning curve, most will agree that it is well worth the time and effort and that the results will speak for themself.
On any given web page there may be multiple div properties used as wrappers or containers. These can have different id’s including the id of “wrapper” and “container”. They can also have other id’s, they don’t have to be just restricted to these id’s.
These divs can be identified with either an ID or Class so the rules can be applied in a style sheet.
This is an example of how div ID=”wrapper” makes an enclosure for the entire contents of that page.
This can be helpful if you want to include the whole page worth of content in a container. This allows the margins and border and other properties to be applied to the whole page.
You can use this CSS rule to center and set a zero pixel margin on the top and bottom page: div#wrapper {margin.0 auto;}.
You can also use a wrapper div to group various elements together. So you may want to use a wrapper around some element of a web page such as navigation. That way you can create a border or padding effect just around that particular element.
Another thing you can do is float the navigation bar to the right or the left. One of the reasons why including an element in a wrapper is a good option is that you can create a container and assign whatever design elements to that content that you want to have.
You can also use wrapper divs to create layouts like CSS columns. These columns are made inside an outer wrapper div by using some simple inner divs with ID’s assigned to them.
Learning CSS can help all web page designers find more creativity and flexibility. By being able to control design aspects on each page, or in one section of each page, at a time you will be able to add the style elements where you want them to be.
This allows you to save time and create awesome web pages with much less time and effort. Taking some time to learn this exciting new programming language is well worth the effort.
Now that you know HTML adds CSS to your repertoire just allows you much more flexibility in what you design. This, in turn, can allow your creative juices full rein over what you design.
For more in-depth CSS wrapper tutorials just go online. There are many places where you can learn more about this new language.