Archives by Tag 'normal flow'

HTML frustrations

By Steve Monas - Last updated: Tuesday, June 15, 2010

Frustration is the genesis of innovation in web design. The language of the web started out as simple HTML. It is an acronym for hypertext markup language. Tim Berners-Lee used that language in his CERN. He had a very limited requirement. He wanted a technology and a program that would help him interpret HTML and [...]

Cascading style sheets to the rescue

By Steve Monas - Last updated: Tuesday, June 15, 2010

Cascading style sheets were a welcome relief to the web designers who were frustrated by the control over design provided by HTML. The style sheets for the first time allowed the designer to apply typographical styles and spacing instructions for elements on the page. The term cascading refers to a situation where several sources of [...]

Sample of importing

By Steve Monas - Last updated: Tuesday, June 15, 2010

<style> @import url(http://pathname/stylesheet.css); </style> Note: All @import statements must occur at the start of a style sheet. Any rules specified in a style sheet will override conflicting rules in an imported style sheet. In the event of conflicting rules in two or more imported @import statements, any conflicting rule in last @import statement listing the [...]

Understanding and determining positions

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

Many web designers are confused about the different positioning schemes that are available. An understanding of positioning schemes must begin with the concept of normal flow. This is the default behavior of the web browser. Each block-level element is stacked one after another with inline elements flowing into the available space on the page. The [...]

Normal flow versus static positioning

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

This is a process of placing a box in the normal flow. It is really a box that is not positioned and is the default position. No declaration with the position property is required for this type of positioning. However, the declaration position: static places the element within the normal flow of the document. The [...]

Absolute positioning

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

Absolute positioning takes its position from the top-lefthand corner of the browser pane with the x and y coordinates at (0,0). This positioning gives the designer tremendous control over the elements so positioned. The code for an absolutely positioned element can be placed anywhere in the code and still the element will display at the [...]

Relative positioning

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

A relatively positioned element on a web page is not positioned with reference to the containing block, but with reference to the normal flow. Therefore, the element disregards its containing block and relates to the browser. The relative tag helps the designer place the elements with reference to the positioning of other elements on the [...]

Fixed positioning

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

This type of positioning is similar to the absolute positioning attribute in that it is calculated with reference to its containing blocks, and it is pulled out of the normal flow. However, the reference is in the context of the browser viewport. The viewport is a fixed block that remains fixed; however, many of the [...]

Defining concepts

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

Absolute positioning defines the x and y coordinates of an element with reference to the top-left corner of the browser page or the containing block, and the position attribute is set to absolute. The code will read somewhat like this: <style type= “text/css”> <!-– p {position: absolute; left 50pt; top: 30pt} –> </style> Note that [...]

Static positioning

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

Static positioning is the default positioning of elements on the page. It sources the element as in the HTML and places them linearly one after another. The elements cannot be repositioned and do not have defined coordinates for the element’s position. However, the <body> element is positioned and provides the coordinates for the child elements [...]