For some reason I can’t make this happen!
I created a gradient on the body background and I want it to be all along the website (one long gradient) but for some reason it fills 100% and than keeps repeating the gradient at the same size.
I tried to set a size for it but it just keep repeating…
Hi @Mordi_Levi, the background repeat option is not available on the gradient selection (but it is a good idea to build this in :), so you just need a little css in your HEAD of your site, paste the following in:
Hey @Mordi_Levi, check out this approach: html - Making gradient background fill page with css - Stack Overflow - looks like you also need to set the html {} selector to be 100% of the height. Note that this can cause quite a few issues with other controls (e.g. all those “make a section fill up 100% of the above-the-fold-viewport” tutorials will break and have that section fill the entire length of the page).
@callmevlad, Thanks, I don’t really mind all I need is a long gradient, 5 sections, and PNG’s uploaded into them.
This is going to be really simple, I won’t need sections to fill 100%.
Is this code effects the gradient colors I have created…? or should i just add the CSS part to the Body?
Did you consider creating a gradient in Photoshop with a height of eg. 2000px and width 1px and then using it as a background image of body element with a repeat-x? Or any higher value that will fill the body.
I thought about it but the images are already really big (illustrations, has to be high quality), and the site is going to be very long I am trying to make it as light as possible…
I really didn’t think this would be so complicated
Guys did anybody find a way to fix this…? This is an illustration project i have been working on for the last three months, I would really like to publish it already!!
I took a peek at your site and may have found a solution for you. Take a peek at this Quickcast (http://quick.as/YRJqTRxr) for a visual to the explanation below:
First, remove background styling on your body tag
Then, add a new div block and give it a class name (e.g. mainContainer). Add everything into this container.
Lastly, style the mainContainer with the background gradient as you wish.
NOTE: to avoid having the sidescrolling issue, try setting the “mainContainer” to overflow: hidden.
Hope this helps! if not, contact us at support@webflow.com and I’d be happy to take a closer look.