Home>Support>CSS to stop scrolling function

CSS to stop scrolling function

By alismith98, 8 years ago. Last reply by Alex S, 8 years ago.

Hi there,

This question pertains to this webpage: http://www.derekscott.ca/tony

I would like to know how to stop the text from scrolling on top of the background image. I want it to stay in a static position.

I added a background image to the row and set the Display Image Function to: Cover.
In the Attributes section, I have set the following CSS:
background-attachment: fixed;
background-position: center;
background-position: center 50px;
background-size: initial;

I added a SiteOrigin Editor widget, and typed in my text.

I’ve tried a a couple of CSS options in the Attributes section of the Editor Widget, to no avail. Here’s what I’ve tried:
position: fixed;
overflow: hidden;

Can’t seem to figure out how to shut-off the scrolling. I want the text to remain in one position.

Thanks!
Alison

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 21 days ago Alex S
    Hi, I Work Here

    Hi Alison,

    Okay so you want fixed text. So the issue with directly adding this to the widget however is the second you do that the row will collapse due to not having anything in that extends the height.

    Add position: fixed; back to the editor widget’s CSS styles field and then open the row that has the background image attached to it by clicking the wrench above it. head over to the row styles sidebar and open the attribute settings group. Input the following CSS into the CSS styles field:

    height: 86.6vh;
    
Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More