My dilemma involves a 200px wide sidebar and trying to have my pace.js bar load beside it, with a margin of 200px to its left. Here is the CSS I've been using for editing:
.pace-progress {
background: #2dbaa6 !important;
position: fixed;
z-index: 2000;
height: 3px !important;
}
I have experimented with different approaches.
One attempt was setting the width with
calc(100% - 200px);
, but that did not work as expected due to the fluid container on the page.Regarding margin-left, I tried
margin-left: 200px
,left: 200px
, andleft: 200
, but none of these produced the desired result. Additionally, if they shifted it left, the bar loaded in the opposite direction.It seems the only adjustment I can make is to the
margin-top
property.
Any suggestions or tips are greatly appreciated!
Thank you!