CSS Position Properties

position properties

VIDYA ACADEMY

VIDYA ACADEMY Add- Rail Bazar Gurudwara Gali Fatehpur Mo- 8400499579


-:-CSS Position Properties-:-

Position Propeties :-

There are five types of css position propertie.

  1. Static
  2. Absolute
  3. Fixed
  4. Relative
  5. Sticky
  1. Static :-
  2. Default value. Elements render in order, as they appear in the ducument flow.

  3. Absolute :-
  4. The element is positioned relative to its first positioned ( not static ) ancestor element.

  5. Fixed :-
  6. The element is positioned relative to the browser window.

  7. Relative :-
  8. The element is positioned relative to its normal position, so "left:20px;"adds 20 pixels to the elements left position.

  9. Sticky :-
  10. The element is positioned based on the user's scoll position.

    A sticky element toggles between relative and fixed, depending on the scroll position.It is positioned reltive until a given offset positionis met in the viewport-then it "sticks"in place ( like poition:fixed).

    Note :- Not supported in IE/Edge 15 or earlier. Supported in safari from veraion 6.1 with a webkit prefix.

टिप्पणियाँ

इस ब्लॉग से लोकप्रिय पोस्ट

Libre Office Scalc ( Interoduction )

Libre Office Calc Formulas

TALLY ACCOUNTING