Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6877931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:39:39+00:00 2026-05-27T04:39:39+00:00

How to design 1) a vertical gradient background with unfixed height, 2) a vertical

  • 0

How to design

1) a vertical gradient background with unfixed height,

2) a vertical gradient background with fixed height (say 600px, from blue to white to green), then the rest has the same green color?


update

Now the new design is from the top to the bottom, 120px fixed height from blue to white, then unfixed height for white, and then 120px fixed height from white to green. How to code that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:39:40+00:00Added an answer on May 27, 2026 at 4:39 am

    There is a way to do it, you will want to take advantage of the available background properties:

    body {
        background-color: green;
        background-image: linear-gradient(blue, white, green);
        background-repeat: no-repeat;
        background-size: 100% 600px;
    }

    Live example: http://jsfiddle.net/sl1dr/PxNhY/

    If you want an unfixed height then replace 600px with 100%.

    EDIT: Here is the new solution according to your changes: http://jsfiddle.net/sl1dr/EtYLZ/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can a SeekBar be vertical? I am not very good at UI design, so
I have a table structure like this (vertical design). I can have unlimited number
Hi I need some help with this. The design calls for a vertical line
What I'm trying to do to design a vertical CSS menu like this one
I have an element that needs to be vertical in a design I have
Here's the rendered html: <div style=padding-left: 50px; vertical-align: middle;> <strong>NONE</strong> <img height=15 width=15 src=images/Checked.gif
I need to create an Android horizontal layout design with a vertical LinearLayout on
I want to design a Horizontal menu and onMouseover I want a vertical submenu
I have a complex vertical nav which includes transparent PNG's in my design. I
Our shop designs and create custom software applications for a vareity of vertical industies.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.