4

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
asked Mar 14, 2012 at 13:21
0

2 Answers 2

3

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
8
  • -webkit-transform rotated it, but the position of the elemet is different to (0,0) now Commented Mar 14, 2012 at 14:18
  • 1
    Looks like such style is a solution: -webkit-transform: rotate(-90deg) translateY(-1000%); -webkit-transform-origin: 100% 0%; Commented Mar 14, 2012 at 15:13
  • The style I posted above solved my problem. But maybe there is a better solution exists ... Commented Mar 15, 2012 at 12:53
  • I don't see how it could get any easier than that. Commented Mar 15, 2012 at 13:33
  • @MattK this comes with a lot of constraints. E.g. width/height references. Commented Dec 14, 2020 at 11:06
0

I think you want -webkit-box-orient.

Checkout the box model playground from Flexie.

answered Mar 14, 2012 at 13:25
1
  • The first link is down now, I think, it shows a ton of tracking if you visit it Commented Sep 3, 2021 at 18:46

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.