DEV Community

Discussion on: Understanding positioning in CSS

Collapse
 
klaudiomilankovic profile image
Klaudio Milankovic

Hi,

Can you clarify this because it's the first time I'm hearing about it.

Are you saying parent with "transform" property will act as a base for a fixed positioned item inside it?

Collapse
 
facundocorradini profile image
Facundo Corradini • Edited

Exactly. Same thing happens with filter and perspective, but browsers are inconsistent on those.

Here's a quick demo with transform

jsfiddle.net/to4g607c