Question

In: Computer Science

6. There are 3 types of positioning commands in CSS: static, relative, and absolute. Explain how...

6. There are 3 types of positioning commands in CSS: static, relative, and absolute. Explain how each type behaves with regard to: (a) (2 pts) whether or not offsets can be specified (b) (2 pts) where offset values are measured from

Solutions

Expert Solution

6. Solution for the problem is provided below, please comment if any doubts:

Positioning commands in CSS:

(a)

  • Static: No offsets can be specified in case of static positioning command. The element will be placed according to the flow of the web page. Even if the offsets are set for static positioning, the effect will not take place. Thus offset can’t be specified in static command mode.
  • Relative: It is a positioning command used to place the elements relative to the normal position. Thus offsets can be specified for the relative positioning command. Thus offset can be specified in relative command mode.
  • Absolute: The absolute positioning command is used to place the elements in relative to the positioned element nearby. If no such previous entry is there the document body will be used for positioning. Thus offset can be specified in absolute command mode.

(b)

  • Static: No offsets can be specified with this command so there is no question where the offset values measured from.
  • Relative: The offset value will be measured from normal position.
  • Absolute: The absolute position command measures the offset from previously placed element.

Related Solutions

what is the static, relative, and absolute positioning in CSS?
what is the static, relative, and absolute positioning in CSS?
How to solve for in a QFD please explain Absolute Weight Absolute Factor Relative Weight Relative...
How to solve for in a QFD please explain Absolute Weight Absolute Factor Relative Weight Relative Factor
Draw and explain how a absolute gravity meter and relative gravity meter works?
Draw and explain how a absolute gravity meter and relative gravity meter works?
Explain the difference between absolute and relative convergence. Create an example in which there is relative...
Explain the difference between absolute and relative convergence. Create an example in which there is relative convergence but not absolute convergence and explain your example
Explain how repolarization happens. Give characteristics of the absolute and relative refractory periods in terms of...
Explain how repolarization happens. Give characteristics of the absolute and relative refractory periods in terms of voltage-gated sodium channel conformation. At what point can a new action potential be generated?
Explain how standard scores are relative vs absolute and give your own example of the difference...
Explain how standard scores are relative vs absolute and give your own example of the difference between the two. Discuss when relative scores as opposed to absolute scores are important?
Explain the difference between absolute and relative poverty and identify and explain the main determinants of...
Explain the difference between absolute and relative poverty and identify and explain the main determinants of consumption, investment and saving in an economy. Word Limit: 300 words
Do you understand the difference between absolute and relative advantage and how it relates to the...
Do you understand the difference between absolute and relative advantage and how it relates to the PPF Curve (IE where each are determined?)
what is the difference between absolute risk and relative risk in epidemiology? and how are both...
what is the difference between absolute risk and relative risk in epidemiology? and how are both calculated ?
(2pts) What is the difference between absolute and relative muscular endurance? Use an example to explain...
(2pts) What is the difference between absolute and relative muscular endurance? Use an example to explain the difference. (1pt) What is the goal of the McGill torso test?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT