Position of loading bar
See original GitHub issueAny way to position the loading bar inside of a div instead of at the top of the page? I tried in CSS:
ngx-loading-bar {
position: absolute;
}
.parentelement {
position: relative;
}
My template looks like:
<div class="parentelement">
<ngx-loading-bar></ngx-loading-bar>
</div>
When I inspect the element in the browser I can see that it does have the correct styling from the stylesheet, but it continues to stay at the top of the page (where it works fine otherwise).
Anything I’m missing? Thanks.
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (6 by maintainers)
Top Results From Across the Web
How can I position my progress bar at the bottom of a button?
I basically only set it to position:relative and then I used position:absolute; on the element inside of it. It disappears because absolute ...
Read more >Building a loading bar component - web.dev
In this post I want to share thinking on how to build a color adaptive and accessible loading bar with the <progress> element....
Read more >HTML DOM Progress position Property - W3Schools
The position property returns the current position of the progress bar. The value of this property is the result of dividing the current...
Read more >Progress indicators - Status - Human Interface Guidelines
Bar indicators, also known as progress bars, show progress in a horizontal bar. Determinate bar indicators fill from the leading side to the...
Read more >Progress - Bootstrap
We use the inner .progress-bar to indicate the progress so far. The .progress-bar requires an inline style, utility class, or custom CSS to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@rpvsen RTL direction not supported yet just opened an issue https://github.com/aitboudad/ngx-loading-bar/issues/118 as a feature but this can be done by just overriding the default css:
For
v6
use https://github.com/aitboudad/ngx-loading-bar/issues/67#issuecomment-1092268937:I’m using v6.0.2 and this no longer works. I had to replace
#loading-bar-spinner
with.ngx-spinner
.