Archives by Tag 'lt'

Sample of linking

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

<head> <link rel=”stylesheet” href=”/pathname/stylesheet.css” type=”text/css” /> </head>

Clipping regions and overflow

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

Using the clip attribute sets the clipping region for a positioned element. The rectangle within which the element is displayed is defined by the attribute and any portion that extends beyond the rectangle is clipped. The clipping region has to be carefully defined in a parametric order—top, right, bottom, and left). The clipping region can [...]

Element visibility

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

Your web page may have a number of elements that must be hidden unless a specific trigger is fired or an action is performed. For instance, if you want to display a clock on the page at a particular time of the day, the clock will have to remain hidden until the time trigger occurs. [...]

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 [...]

Combining concepts

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

Absolute positioning is relative! In reality, an absolutely positioned element is relative to its containing block. The containing block is the nearest-positioned ancestor or the document’s initial containing block. It is a structurally superior element whose property is absolute or fixed or relative. The following example shows how an absolutely positioned element can be relative [...]

Types of positioning

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

While this default “flow” does not give the designer much scope for manipulating layouts, CSS allows the designer to apply a small set of attributes to the elements of the page and control their position by defining coordinates within which they will appear. CSS 1 provided the user with the ability to specify: The width [...]

Fixed positioning

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

Fixed positioning is often regarded as a subset of absolute positioning. Like the containing boxes of absolutely positioned elements, the boxes of the fixed positioned elements are independent. However, the placement is different. Instead of localizing the element on the body of the page, the element is allowed to flow with the dimensions of the [...]

Relative positioning and layers

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

Relatively positioned layers form part of the normal flow of the web page. These are also known as inflow layers. These layers occupy space in the document flow and share line space with other elements of the web page. The left and top attributes or properties can be set to specify the offset of the [...]

Absolute positioning and layers

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

Absolutely positioned layers can be defined with reference to its coordinates within its containing layer. The top, left corner of the layer can be set using the left and top attributes or properties. However, if these attributes are not set, they will default to the top and left of the containing layer automatically. The absolutely [...]

Using background images in tables

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

We can have a composite image that is split into pieces and must be set to recombine in the cells of a table or a single image that needs to be repeated to form a tiled background for the page by inserting the image into each of the cells and aligning them precisely to give [...]