?Discuss the various types of Cascading Style Sheets (CSS) positioning styles.

What will be an ideal response?

?CSS supports five kinds of positioning: static (the default), relative, absolute, fixed, and inherit. Instatic positioning, the element is placed where it would have fallen naturally within the flow of a document. This is essentially the same as not using any CSS positioning at all. Browsers ignore any values specified for the top, left, bottom, or right properties under static positioning.?Relative positioning is used to nudge an element out of its normal position in a document flow. Under relative positioning, the top, right, bottom, and left properties indicate the extra space that is placed alongside the element as it is shifted to a new position.?Absolute positioning places an element at specific coordinates within a container where the top property indicates the position of the element's top edge, the right property sets the position of the right edge, the bottom property sets the bottom edge position, and the left property sets the position of the left edge.?To place an object with absolute positioning, use either the top/left coordinates or the bottom/right coordinates but not all four coordinates at the same time because that would confuse the browser.?When one scrolls through a document in a browser window, the page content scrolls along. If an object within the browser window has to be fixed so that it doesn't scroll, its position property can be set to fixed.?The position property can be set to inherit so that an element inherits the position value of its parent element.

Computer Science & Information Technology

You might also like to view...

Match the following aggregate function to what it does:

I. SUM II. LAST III. COUNT IV. MIN V. AVG A. provides the number of records in a field B. averages the values in a field C. totals the values in a field D. displays the final value in a field E. locates the smallest value in a field

Computer Science & Information Technology

In the Values area on a PivotTable, the default summary option for quantitative data is finding the:

A) sum. B) minimum. C) maximum. D) average.

Computer Science & Information Technology