Magento Expert Forum - Improve your Magento experience

Results 1 to 4 of 4

What are the possible values for “position”?

  1. #1

  2. #2
    Junior Member petershene's Avatar
    Join Date
    Aug 2017
    Location
    South Africa
    Posts
    91
    Thanks
    2
    Thanked 3 Times in 3 Posts

    Default

    There are many. If you are talking about as i presume the css property.

    static Default value. website Elements render in order, as they appear in the document flow
    absolute The element is positioned relative to its first positioned (not static) ancestor element
    Fixed The element is positioned relative to the browser window
    relative The element is positioned relative to its normal position, so "left:20px" adds 20 pixels to the element's LEFT position
    sticky The element is positioned based on the user's scroll position.

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

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

    initial Sets this property to its default value. Read about initial
    inherit Inherits this property from its parent element. Read about inherit

  3. #3
    Junior Member
    Join Date
    Sep 2018
    Location
    United Kingdom
    Posts
    635
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    The five position esteems are relative, fixed, acquire, static, and supreme.

  4. #4
    Junior Member
    Join Date
    Sep 2018
    Location
    Oman, Muscat
    Posts
    2,084
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    position: fixed; A component with position: fixed; is situated in respect to the viewport, which implies it generally remains in a similar spot regardless of whether the page is looked over. The top, right, base, and left properties are utilized to position the component.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •