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 6602331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:51:50+00:00 2026-05-25T18:51:50+00:00

http://jsfiddle.net/nicktheandroid/F8v2c/3/ I’m trying to make a radial gradient that flows seamlessly between 2 sibling

  • 0

http://jsfiddle.net/nicktheandroid/F8v2c/3/

I’m trying to make a radial gradient that flows seamlessly between 2 sibling elements – starting from 10px or 20px to the right of the button, flowing down about half way down through the “.content” div.

I believe this just takes correctly positioning the gradients for both elements so it looks like it’s one flowing radial gradient, that’s the problem, I’ve been trying to do this but I’ve become frustrated – and the answer might help others.

There’s a background behind the menu, so I cannot simple ‘white-out’ the portion next to “features” in the image below – see the jsfiddle.

See image for example.

Example of radial gradient flowing through 2 elements seamlessly

  • 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-25T18:51:51+00:00Added an answer on May 25, 2026 at 6:51 pm

    I’ve posted a quick update to your jsfiddle at http://jsfiddle.net/F8v2c/9/


    To work out the position you need to set a height on the button, then you know how much to offset the gradient by. On the button we have:

    padding:10px;
    height:21px;
    

    So we know the total height of the box is 41px
    (21px height +10px top padding +10px bottom padding)

    So to have the centre of the gradient 10px below the button we would use 51px for the vertical position, the horizontal doesn’t matter as long as it is the same on both the button and the dropdown. Unless the button and dropdown are the same size percentages will not work, so we will set the size of the circle in pixels (300px).

    background-image: radial-gradient( 74px 51px, circle closest-side, rgba(171, 171, 171, 1), #0000ff 300px);
    

    On the drop-down the css is almost the same except instead of the centre of the gradient being 10px below the bottom it is 10px from the top.

    background-image: radial-gradient( 74px 10px, circle closest-side, rgba(171, 171, 171, 1), #0000ff 300px);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://jsfiddle.net/nicktheandroid/B7Rhe/5/ I'm trying to make the next slide fade in over the current slide,
http://jsfiddle.net/yxhzU/1042/ I'm trying to modify this example so that within the top carousel you
http://jsfiddle.net/nicktheandroid/3AraQ/ When a P is hovered over, #both is appended to that paragraph and
http://jsfiddle.net/nicktheandroid/BcaW3/1/ I'm trying to create a simple canvas version of my jQuery example. When
http://jsfiddle.net/nicktheandroid/3LxRr/ When highlighting a paragraph containing a link that's set to display:inline-block, there appears
http://jsfiddle.net/nicktheandroid/Fazsh/1/ The following creates a gradient border, this syntax is working for webkit, but
See http://jsfiddle.net/FDhQF/1/ for a trivial example. What's the difference between something being undefined and
http://jsfiddle.net/nicktheandroid/SsfpG/ I don't understand why these inline elements are causing the paragraph to stop
http://jsfiddle.net/n8YsM/ How do I make the div id blue take up the remaining visible
http://jsfiddle.net/F7BTx/ I'm trying to align just some text within a table header cell to

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.