Navbar Top Right is kind of centered - how to align to the 'real' right? January 09, 2021, 04:18:05 PM @willvin The Navbar Top Right is kind of centered - how can I align it to the 'real' right, next to the user menu?Preferrably just with custom CSS Thanks,Erwin Quote Selected
Re: Navbar Top Right is kind of centered - how to align to the 'real' right? Reply #1 – January 11, 2021, 02:04:31 PM @Erwin I don't quite get your question. Quote Selected
Re: Navbar Top Right is kind of centered - how to align to the 'real' right? Reply #2 – January 12, 2021, 11:03:38 AM @willvin Instead of this:I want this: Quote Selected
Re: Navbar Top Right is kind of centered - how to align to the 'real' right? Reply #3 – January 12, 2021, 12:55:57 PM @Erwin please add the following code inside your document.ready function in Custom Js.Code: [Select]$("div>ul.navbar-nav").removeClass("ml-auto");Enjoy👍! Quote Selected 1 Likes
Re: Navbar Top Right is kind of centered - how to align to the 'real' right? Reply #4 – January 12, 2021, 01:03:47 PM Thank you @willvin I noticed that when using document.ready and doing some rearranging on the screen, that the user sees the elements jumping from one place to the other. Because the page is first loaded and then redrawn. In this case of the menu allignment, the change is small so it's hardly noticeable. But with other elements it looks weird. Is there another way to do this?For example, is it possible to use jquery remove or toggle classes (and others like append) and put the final display 'on hold' and only when the "new" screen is ready, then let the screen show? Quote Selected
Re: Navbar Top Right is kind of centered - how to align to the 'real' right? Reply #5 – January 14, 2021, 12:40:28 AM @Erwin this is the best way to automatically do it. If you try to work on the menu when the page has not loaded, you might get an error because it can't find the menu element. so you have to wait for the page to load before you trigger the remove class function. The other way to go about it is to manually remove the class from the menu file. Quote Selected 1 Likes