Rifts Posted October 25, 2010 Share Posted October 25, 2010 Hey quick question, When making Photoshop mock-ups of website I like to use gradient backgrounds. I a lot of the time the sites height will be unknown or change. an example would be the background of this post the blue to white. What is the best way to do this? Do I save a sliver of the gradient and repeat it x or what? Thanks Quote Link to comment Share on other sites More sharing options...
haku Posted October 26, 2010 Share Posted October 26, 2010 Lets say you are doing a vertical gradient (where the color changes from top to bottom). Create a gradient of a set height. Say 900px. Take a 5px wide slice of that gradient. So now your image is 900px by 5px. Repeat along the X axis. Then, get the color at the very bottom pixel of the gradient. You will set the background color of the element (generally the body, though not always) to that color. So the image will change in color as it goes down, and at the point where the image ends, the background color is the same as the bottom of the image, providing a seamless transition. Quote Link to comment Share on other sites More sharing options...
Rifts Posted October 26, 2010 Author Share Posted October 26, 2010 ok thats what I figured I just wasnt 100% sure thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.