Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
Circular progress bar position

There is a circular progress bar. This bar prints the number of days remaining, taking the day difference. But I'm having trouble adjusting the position of this bar.

I am trying to do;

enter image description here

What I've been able to do so far;

enter image description here

html

<div className={'circularremainingtime__container only-desktop' + circularColor}>
  <div className="remainingday">
    <p>{endDate.getDate()}</p>
    <p>{endDateMonth}</p>
  </div>
  <AS.CircularProgress
    className="circularprogress"
    style={style}
    variant="determinate"
    value={persentage}
    thickness={3}
  />
  <p>{circularText}</p>
</div>

css

.circularremainingtime__container.only-desktop {
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 1.5em;

  & > p {
    margin: 0;
    font-weight: 600;
    margin-top: 0.5em;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--palette-red-300);
  }

  & > div {
    padding: var(--padding);
  }
  .circularprogress {
    color: var(--palette-red-300);
  }

  .remainingday {
    //position: absolute;
    color: #004dcf !important;
    padding-top: 5px;
    
    p{
      margin: 0;
      text-align: center;
      color: #004dcf !important;
      font-size: 8px;
      font-weight: bolder;
    }

    p:first-child{
      font-size: 13px;
      text-align: center;
    }
  }
}

When I set the remainingday class to absolute, I can get the image I want. But when I swipe the screen, the dates don't change at all. That's why I commented that line.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to use position: absolute; top:0px; for . circularprogress in your style because what you are doing is rendering the element next to the div, that's why it is showing below that.

Cheers.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!