?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...

When a piece of data such as 23 or “Hello” is written into a program’s code, it is called a ____________.

a. constant b. sentinel c. value d. literal

Computer Science & Information Technology

After creating a function, you can invoke it from one or more places in an application's code.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A mobile phone user in your company is experiencing dropped phone calls. While interviewing the user, you determine the problem started after she checked her email this morning. No other mobile devices in the organization are dropping calls.   Which of the following is the most likely reason for the dropped calls?

A. Cellular service is weak in the office building. B. Malware is interfering with the calls. C. The user is connected to an unauthorized Wi-Fi network. D. The user has exceeded the limit on her data plan.

Computer Science & Information Technology

Which of the following is the MINIMUM amount of hard disk space required to install Windows 7?

A. 4GB B. 8GB C. 12GB D. 16GB

Computer Science & Information Technology