Wednesday, December 10, 2008

HTML frames - Frameset

This HTML tag establishes a frames environment. It specifies the dimensions of each of the frames to be set-up with either percentage or fixed pixel values. A frameset element may specify that the users’ display window is to be divided up either row-wise or column-wise. Frameset elements may be nested in order to divide the display window both row- and column-wise.

The attributes used with this element are all marked up in the standard HTML way (ie, attribute=”value”, with each attribute and value pair separated by one or more spaces).

rows=”30%,20%,*”

In this example three frame windows are established in percentages of the viewable screen area. The first window is given 30 per cent, the second 20 per cent and the third set to the asterisk character which means it is to fill whatever is left of the display window after the specified frame sizes have been set up.

cols=”200,100,*”

In this example three frame windows are established in columns of fixed pixel values. The first window is given 200 pixels, the second 100. The size of the third column is set to the asterisk character, which specifies that it is to fill whatever is left of the display window after the specified frame sizes have been set up.

0 comments: