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

  • Home
  • SEARCH
  • 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 6603073
In Process

The Archive Base Latest Questions

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

How would I make the radius 200px in width and height? I’ve read that

  • 0

How would I make the radius 200px in width and height? I’ve read that this can be done in pixel units, but every attempt has failed.

background-image: -webkit-radial-gradient(75% 100%, circle farthest-corner, #ffffff, #ff7ae9 33%);
background-image: -o-radial-gradient(75% 19%, circle farthest-corner, #ffffff, #ff7ae9 33%);
background-image: -ms-radial-gradient(75% 19%, circle farthest-corner, #ffffff, #ff7ae9 33%);
background-image: radial-gradient(75% 19%, circle farthest-corner, #ffffff, #ff7ae9 33%)
background-image: -moz-radial-gradient(75% 19%, circle farthest-corner, #ffffff, #ff7ae9 33%);
  • 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:57:32+00:00Added an answer on May 25, 2026 at 6:57 pm

    edit: Updated for modern syntax, I’ve left the original below for a record of the 2011 syntax


    You can set both the radius and position the gradient in pixel values or any other valid length unit.

    In the example below circle at 200px 200px is setting the center point of the circle to 200px across and 200px down, this could also be any value accepted by background-position such as left or top.

    The next values are the color stops and are comma separated pairs of color length. Again any valid value of color and length would work red 10%, #333 10px and rgb(10,47,10) 1em would all be valid.

    Values like px or em are absolute and percentage values would be relative to the gradient container.

    .gradient-demo {
      width: 500px;
      height: 400px;
      background: radial-gradient(circle at 200px 200px, #fff 0px, #fff 100px, #ff7ae9 101px);
    }
    <div class="gradient-demo"></div>

    Original Answer:

    background-image:    -moz-radial-gradient(50px 100px, circle farthest-corner, #ffffff, #ff7ae9 200px);
    background-image: -webkit-radial-gradient(50px 100px, circle farthest-corner, #ffffff, #ff7ae9 200px);
    background-image:      -o-radial-gradient(50px 100px, circle farthest-corner, #ffffff, #ff7ae9 200px);
    background-image:     -ms-radial-gradient(50px 100px, circle farthest-corner, #ffffff, #ff7ae9 200px);
    background-image:         radial-gradient(50px 100px, circle farthest-corner, #ffffff, #ff7ae9 200px);
    

    In this example the ‘200px’ is the size of the circle, any standard
    CSS units such as px, em or percentages are fine.

    The ’50px 100px’ is the position of the centre of the circle, it works
    the same way as background-position so values like ‘left top’ are
    fine too.

    There are a few online generators that can help you with all the
    vendor specific prefixes.


    p.s. @Mohsen pixel values are fine, MDN says:

    either a percentage between 0% and 100% or a length along the gradient axis

    If you click on ‘length‘ it says

    The CSS syntax for length is a number followed immediately by a unit. Space between the number and the unit is not allowed.

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

Sidebar

Related Questions

is there a python library that would make numbers such as this more human
I'm in the process of planning an application that would make use of the
I have a C++ app and looking for a library that would make it
I think this example would make it clear. My HTML is this: <li class='nav-active'><span
How do i pull off something that would make the last commented line compile?
I have an application that I know would make a great cube and would
How do I make a infinite/repeating world that handles rotation, just like in this
It would make sense if I was in a ±5 hour timezone, but I'm
Here is my pool game engine done in Box2dFlash. I would like to make
I would like to add a border radius to a list of items but

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.