The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Push Menu Implementation : Should I use absolute or fixed positioning

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #235093

    I’m wondering whether to use an absolute position or a fixed position for a push menu that am creating. Both of them do the trick, they give me a functioning push menu. But am still not sure which one is the right one to use.

    I know fixed positioning behaves closely to absolute positioning, except that, fixed elements are positioned relative to the viewport of the machine( more precisely the browser window) whereas absolute positioned elements are relative to their immediate relative parent element.

    The following links contins implementation using both positionings: absolute and fixed.

    Thanks guys.


    It’ll be more apparent when the page has overflow – the fixed element will be “sticky” and always visible while the absolute menu will scroll with the page. The way it’s implemented with the first pen, no specific positioning would seem to have the same effect by the way.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.