Forums

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

Home Forums CSS Width fixed div element same as the parent's Reply To: Width fixed div element same as the parent's

#245515
Paulie_D
Member

Once you apply position fixed…the element no longer has any relation to the parent element.

That applies to width and everything else.

You might try position:sticky instead

http://codepen.io/Paulie-D/pen/pEgaWA