question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Position of loading bar

See original GitHub issue

Any 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:closed
  • Created 6 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
aitboudadcommented, Jul 10, 2022

@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:

    ::ng-deep #loading-bar-spinner {
      right: 10px !important;
      left: unset !important;
    }

For v6 use https://github.com/aitboudad/ngx-loading-bar/issues/67#issuecomment-1092268937:

    ::ng-deep .ngx-spinner {
      right: 10px !important;
      left: unset !important;
    }
2reactions
colinbr96commented, Apr 7, 2022

I’m using v6.0.2 and this no longer works. I had to replace #loading-bar-spinner with .ngx-spinner.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found