Could someone assist me in adjusting the CSS and/or HTML for my loading bar? I am currently facing two issues with it.
The first problem is that there seems to be an excess shadow extending outside the bar on the left and right beyond the border. This gives the appearance of pixelation in the border-radius when properly zoomed in. It seems to be related to the box-shadow
property, as removing it from both #progress
and #buffer
eliminates the issue.
The second issue is relatively minor but quite irritating. When the progress/buffer bar begins to load (with a width of 0.4%
), the shape of the div exceeds the container:
I understand that I can use overflow:hidden
(which I already use in #loading_bar_container
) to address this, but it seems that setting position:absolute
prevents it from being hidden (and I require absolute positioning to ensure the two bars overlap each other). If I remove #buffer
(leaving just one bar) and eliminate position:relative
from #loading_bar
and change position:absolute
to absolute
in #progress
, I achieve the desired layout:
Here is a piece of code from a JSFiddle snippet where we can experiment with it further.
Cheers!
PS: I believe the tag should be 'loading-bar,' but since I cannot create a new tag, I appended it as 'progress-bar.'
Edit: After testing in Chrome, @Oriol mentioned that it functions well in Firefox. Upon checking, Firefox displays it correctly as intended. I also verified Safari, which exhibits similar behavior to Chrome. Therefore, this inquiry pertains to Chrome and Safari specifically. I have not tested it in IE yet (feeling hesitant).