This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

CSS to stop scrolling function

9 years ago · Last reply by Alex S 9 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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 9 years, 5 months ago

    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.

Have a different question or issue?

Start New Thread