Can you guys help me in tweaking out my loading bar css and/or html. I've got two problems existing right now with my current loading bar.
One is that there is some excess shadow going out of the bar in the left and right outside the border (which makes it look like the border-radius is pixelated when zoomed properly). I know it's the box-shadow
's problem cause it's not there when I remove the box shadow property for both #progress
and #buffer
.
And another is quite minor but is really bugging me. When the progress/buffer bar is just starting to load (change style="width:0.4%"
), the form of the div with radius goes outside the container:
I know I can overflow:hidden
it (which I already do in the #loading_bar_container
), but I think position:absolute
doesn't want to get hidden (which I need absolute cause I need the two bars to be in one position, overlapping each other). When I remove though the #buffer
(so there's only one bar), and remove loading_bar
's position:relative
and #progress
's position:absolute
, I get the scenario I want which is:
I'll add here a jsfiddle fragment of the code so we can play with it.
Cheers!
PS: I think tag should be loading-bar but I can't create a new tag so I add it as progress-bar.
Edit: I've done this test in Chrome and @Oriol mentioned it works well in FF. I've checked and FF does display it the way I wanted it to. I've checked with Safari and it displays the same was as Chrome. So this question is for Chrome and Safari so far. Haven't checked it with IE (scared).