css - making an image stick relative to other elements while page zooms in or out -


i have image, white rectangle, i'm trying use screen between top layer logo , text below.

the logo part of header , acts 'sticky' - not moving when y-scrolling page.

what i'm failing @ making rectangle stay fixed relative it's parent (the header) when zooming takes place.

instead, rectangle floats away each zoom.

header position fixed, img absolute.

p.s. tried searching answer. above setting taken from: can position element fixed relative parent?

please kindly help, yaron h.


Comments

Popular posts from this blog

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -

double exclamation marks in haskell -

javascript - How to get D3 Tree link text to transition smoothly? -