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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:31:08+00:00 2026-05-26T01:31:08+00:00

Given the following HTML: <body><div class=container></div></body> and CSS: body { background-color: #e9f9e9; } .container

  • 0

Given the following HTML:

<body><div class="container"></div></body>

and CSS:

body {
  background-color: #e9f9e9;
}

.container {
  height: 200px;
  width: 200px;
  background: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 100, color-stop(0%, #fcfffc), color-stop(100%, #e9f9e9));
  background: -webkit-radial-gradient(#fcfffc, #e9f9e9);
  background: -moz-radial-gradient(#fcfffc, #e9f9e9);
  background: -o-radial-gradient(#fcfffc, #e9f9e9);
  background: -ms-radial-gradient(#fcfffc, #e9f9e9);
  background: radial-gradient(#fcfffc, #e9f9e9);
}

The edges of the radial gradient do not match the final color stop, and thus does not match the containing element’s background color (which is the same as the gradient’s final color stop), causing an abrupt color change at the edge of the <div>. How can this be avoided?

Screenshot with adjusted contrast & saturation to make the problem obvious: Screenshot with adjusted contrast & saturation to make the problem obvious

View live on jsFiddle. Verified to occur on OS X 10.7 in Chrome 14 & 16, Safari 5.1, Firefox 7 & 9a2; Windows 7 in Chrome 14 & 16, Firefox 7 & 9.0a2.

  • 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-26T01:31:09+00:00Added an answer on May 26, 2026 at 1:31 am

    That’s because, according the specs the default value for the size argument of the radial gradient function is a cover, so the circle positioned so that it tries to cover all the square area with pixels that have alpha > 0.

    So, to fix it, set this argument to contain: http://jsfiddle.net/kizu/FZAJM/1/ — and it would be fixed.

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

Sidebar

Related Questions

Given the following HTML <div style=width: 500px; height: 500px; border: 1px solid red;> <div
Given the following html: <body> <div style=float: left; background: red>Hi</div> <div style=float: left; background:
Given the following HTML: <!doctype html> <html> <body> <span style=background-color: blue;> Some text here
Given the following HTML: <!DOCTYPE html> <html> <body> <div id=container> <div id=left style=float: left;
Given the following XML structure <html> <body> <div> <span>Test: Text2</span> </div> <div> <span>Test: Text3</span>
Given the following HTML page: <html> <head> <title>WatiN Test</title> </head> <body> <div> <p>Hello World!</p>
Given the following HTML <div classmyclass>10</div> <div classmyclass>25</div> <div classmyclass>50</div> <div classmyclass>20</div> I want
Given the following HTML example... <div id='div1'>div one</div> <div id='div2'>div two</div> ...I found that
Given the following beginning of an HTML email body, how old is their version
Given the following CSS: body { font-family: Corbel, Calibri, Verdana, Helvetica, sans-serif; font-size: 9pt;'

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.