I have the following design with gradient

enter image description here:

The gradient is 348px long, linear, starts with #F7F7F7 and ends with white #FFFFFF. I need to know what gradient color should I put as a starting point if I want my gradient to be not 348px, but 270px (shown by red line) with keeping to the original design. Is that possible?

  • You want the F7F7F7 to start at the top of the blue box (marked 78)? So that you get a smooth gradient? – benteh Mar 10 '14 at 12:48
  • Basically I want the gradient to start from the top of the blue box and up. However, I believe that the color the gradient will start from should be different so that the part from the top of the box looks exactly like existing one – Maxim Koretskyi Mar 10 '14 at 12:54

I understand your question differently than boblet. What I think you want is a the colour that is interpolated by the gradient at 78px from the bottom of the gradient. I don't know a method to exactly determine it, only how to approximate it.

First create your original 348px gradient. For the colours I used black and white for clarity. enter image description here

Then place a guide at 78px from the beginning of the gradient. enter image description here Now select the rectangle that has the gradient, go to Object -> Expand, you will see this window: enter image description here
Make sure you expand the gradient to objects, not as a gradient mesh.

Now you can double click the rectangle (which now is a group) to enter Isolation mode and select one "piece" of the gradient closest to the previously set guide. enter image description here

The fill colour of that piece is displayed in the colour panel, you can drag it as a swatch to save it.

Now use that colour as the starting point of your new, 270px gradient.

  • Good point; that makes perhaps more sense. – benteh Mar 10 '14 at 13:20

Not entirely sure what you want, as I do not really understand the reference to the height of the boxes. But I am going to give it a go:

enter image description here

You could move the largest box up:

enter image description here

You could alter the starting point of your gradient to be "longer" on the darker side:

enter image description here

Or you could skip the bottom box entirely:

enter image description here

You can add as many incremental colour point in the gradient slider as you like, by clicking a point on the slider:

enter image description here

Edit: oh, I forgot Object > expand > choose increments. That should give you something like this, and you can pick the level.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.