Is it possible to make vertical HTML5 progress bar in Google Chrome?
In Mozilla Firefox, it can be done in the following way:
<style>
.vert {
-moz-orient: vertical;
}
</style>
<progress class="vert" style="position: absolute; top: 0px; left: 0px;"
value="10" max="100" id="progressBar">No progress bar</progress>
Eric Leschinski
155k96 gold badges422 silver badges337 bronze badges
2 Answers 2
You could rotate it:
Webkit: -webkit-transform: rotate(90deg);
FireFox: -moz-transform: rotate(90deg);
IE: filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
answered Mar 14, 2012 at 13:31
-
-webkit-transform rotated it, but the position of the elemet is different to (0,0) nowMax– Max03/14/2012 14:18:32Commented Mar 14, 2012 at 14:18
-
1Looks like such style is a solution:
-webkit-transform: rotate(-90deg) translateY(-1000%); -webkit-transform-origin: 100% 0%;
Max– Max03/14/2012 15:13:43Commented Mar 14, 2012 at 15:13 -
The style I posted above solved my problem. But maybe there is a better solution exists ...Max– Max03/15/2012 12:53:29Commented Mar 15, 2012 at 12:53
-
I don't see how it could get any easier than that.Matt K– Matt K03/15/2012 13:33:21Commented Mar 15, 2012 at 13:33
-
@MattK this comes with a lot of constraints. E.g. width/height references.OddDev– OddDev12/14/2020 11:06:29Commented Dec 14, 2020 at 11:06
I think you want -webkit-box-orient
.
Checkout the box model playground from Flexie.
answered Mar 14, 2012 at 13:25
-
The first link is down now, I think, it shows a ton of tracking if you visit itTankorSmash– TankorSmash09/03/2021 18:46:40Commented Sep 3, 2021 at 18:46
lang-html