Submitted about 3 years ago
Fylo data storage component challenge . Using just html and Css
@Tosho4real
Design comparison
SolutionDesign
Solution retrospective
Okay , so i have a problem with the Triangle . Anyone who can help?
Community feedback
- @tomas938Posted about 3 years ago
<div id="bottom"> <p class="storage">You’ve used <span>815 GB</span> of your storage</p> <div class="data"> <div class="layover"> <h1>185</h1> <span>GB LEFT</span> <div class="triangle"></div> </div> <div class="full-bar"> <div id="bar"> <div id="circle"></div> </div> </div> <div class="para"> <p>0 GB</p> <p>1000 GB</p> </div> </div> </div> .layover { position: relative; transform: translateY(-100px) translateX(325px); } .triangle { height: 50px; width: 50px; position: absolute; top: 90%; right: 0; border-right: 50px solid white; border-bottom: 50px solid transparent; }
this should help little bit
Marked as helpful0 - @tomas938Posted about 3 years ago
Hi, you need put your triangle in your layover div and give it position relative and then absolutly position triangle with top,left,right,bottom values as u need .
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin our Discord community
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