Archives by Tag 'padding'

Tables

By Steve Monas - Last updated: Monday, June 14, 2010

Tables are one of the primary tools that are used by web designers to gain control over elements of a web page. They also offer visually interesting organization of text and graphics. They help the designer designate specific parts or columns and rows for menus, navigation bars, or for framing images or content. However, browser [...]

Understanding the need for visual formatting model

By Steve Monas - Last updated: Monday, June 14, 2010

CSS visual formatting model supposes that a document contains a number of boxes within boxes. A box can have a border and a background. The content of the box will be held in the center of the box and the area around it will be the padding. The margin is around the border of the [...]

Layouts and element positioning in visual formatting

By Steve Monas - Last updated: Monday, June 14, 2010

All CSS positioning schemas such as float, relative, absolute, fixed, and static are applicable to the visual-formatting model. Normal flow in the visual formatting context can be with reference to the block or inline elements, but not both simultaneously. Block elements participate in a block-formatting context, and inline boxes participate in inline formatting context. In [...]

Layer problems

By Steve Monas - Last updated: Monday, June 14, 2010

The most irritating problem about absolutely positioned layers is overlapping text. The moment users resize their text, all the beautiful layering done by the web designer takes a toss! The text begins to overlap. While Gecko browsers will allow the text to overflow, IE will expand the layers and overlap the borders of the layers [...]

Examples of stacking

By Steve Monas - Last updated: Monday, June 14, 2010

The code for the display of overlapping cells is given below for ease of understanding. Each <div> is defined, its properties set, and then a z-index order has been assigned. Readers should try to reassign the z-index order or change the properties of different div elements to see the effect on the positioning of layers. [...]

Absolute positioning of graphics and images

By Steve Monas - Last updated: Sunday, June 13, 2010

A longstanding complaint of graphic designers is that they are unable to absolutely position a graphic on a web page. One solution is available with HTML—CSS. Look at the id selector and its properties. It is a unique variable that is identified by a # mark followed by a name—in this case #picturepos. It works [...]