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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:47:10+00:00 2026-05-27T03:47:10+00:00

CSS .block{ -moz-linear-gradient(left, #e5e5e5 0%, #000000 100%); } Change to -moz-linear-gradient(left, #e5e5e5 50%, #000000

  • 0

CSS

.block{
-moz-linear-gradient(left, #e5e5e5 0%, #000000 100%);
}

Change to

-moz-linear-gradient(left, #e5e5e5 50%, #000000 100%);

html

<div class="block" style="width:500px; height:500px;"></div>

I don’t want to replace all of the style.Because I need to give user choose 1-100
then only change the % ,so how to select the % element & change it ?

  • 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-27T03:47:11+00:00Added an answer on May 27, 2026 at 3:47 am

    How about this:

    var area = 'left';
    var color1 = '#e5e5e5';
    var percentage1 = '50%';
    var color2 = '#000000';
    var percentage2 = '100%';
    $('.block').css('background-image', '-moz-linear-gradient(' + area + ', ' + color1 + ' ' + percentage1 +', ' + color2 + ' ' + percentage2  + ')');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to change the same type CSS?? eg. background: -webkit-linear-gradient(left, #1e5799 0%,#7db9e8 100%); background:
my CSS code .child{ width:100px; height:100px; display:inline-block; } my HTML code <div id=parent> <div
my code is something like this //css li{display:inline-block} //html #li margin and width are
ul.nav { list-style: none; display: block; width: 200px; position: relative; top: 10px; left: 300px;
My Css #container{ display:block; } #container ul{ list-style:none; position:relative; margin:0px; padding:0px; display:block; } #container
I have html and css as below - .title { display: block; background-color: red;
My current CSS: .DataForm input { margin-right:9px; display: inline-block; width:21%; min-width:30px; } works fine
I am trying to match multiple CSS style code blocks in a HTML document.
I have a div with a CSS style to show it as a button:
The CSS selector .content-block affects the .content-block div in this section: #branding, #mainbar, #accordion,

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.