Sunday, 13 September 2009

THE ART OF CSS POSITIONING

CSS Positioning is one thing I used to struggle with, hopefully I can help you understand how positioning works and what it’s affected by, and iron out some of those kinks.

Let’s get one thing straight: positioning is vital in web design. When you have odd issues between browsers where elements vanish, don’t show or are a few pixels out of alignment, it’s normally because you are guilty of using margin and padding for positioning your elements. This is wrong because margin and padding were not designed to do that. (of course, if each browser was compliant with web standards there probably would not be an issue).

Positioning exists to allow exact placement of elements within your markup, simple as that. This tutorial aims to help you understand CSS positioning, which will become one of your most valuable assets in transferring your design to HTML/CSS.

continue reading http://tutshelf.com/the-art-of-css-positioning/

No comments:

Post a Comment