@faruking
Posted
Visit this link to help you better understand ranges styling ranges
Marked as helpful
@maaghia
Posted
@faruking thank you
Looking to hire developers?
I am gonna need some help to style the range input, I would be glad to receive any help so that I can complete the challenge
@faruking
Posted
Visit this link to help you better understand ranges styling ranges
Marked as helpful
@maaghia
Posted
@faruking thank you
@Jexinte
Posted
Hey @maaghia,
To do style the progress bar you can set a parent div which contains ::after pseudo elements it's very useful to style those kind of things.
The parent div will be set on relative position and ::after on absolute position then you can style it like the design.
The white circle is very easy to do I'll let you think about it you've done a good job I'm sure you will find the solution for it .
More details here :
:: AFTER https://developer.mozilla.org/en-US/docs/Web/CSS/::after
POSITION ABSOLUTE , RELATIVE https://developer.mozilla.org/en-US/docs/Web/CSS/position
In hope it helps !
@dev-mksingh
Posted
Hey @maaghia, good work out there, in response to your concern here is what you can do :
<div></div>
element and set height, width and padding of it as appropriate.<div></div>
element created in step 1 with another <div></div
element and set height less than the parent <div></div>
also use gradient background-color, again set the padding as appropriate. And set position:relative;
<div></div
created in step 2 with another <div></div>
element and set theborder-radius: 50px;
position:absolute;
right: 0 ;
margin-right: 5px;
Note: You might need to add some other CSS properties as per requirement, but the above step will definitely help you with the range stuff. Also there can be other ways, but in my opinion and challenge i performed the same. Hope you will find this solution helpful. Happy coding.
@maaghia
Posted
@dev-mksingh I don't think the div trick would help since my question was about styling a range input not only a div, since I used a range input in there
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord