Home / Expert Answers / Computer Science / html-css-to-have-text-and-button-float-over-a-banner-image-i-39-m-trying-to-do-something-like-this-e-pa672

(Solved): HTML/CSS to have text and button float over a banner image? I'm trying to do something like this (e ...



HTML/CSS to have text and button float over a banner image?

I'm trying to do something like this (example website below) but I need the text and button to stay in place over the image when I scroll down. When I try this, my text/button keep moving off the image when I scroll or resize.

Meet me at Megs

How can I accomplish this? Please help!

Meet me at Meg's


We have an Answer from Expert

View Expert Answer

Expert Answer


To have text and a button float over a banner image, you can use the position and z-index properties in your CSS. Here's an example of how you can ach
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe