Search the Community
Showing results for tags 'RTL'.
-
What is the file in which it is required to make the change so that my clients receive the tickets in RTL ? And what change do I need to make in the code for this to happen?
-
Hi, I'm newbie and I'm trying to modify a CSS file so it will work with the new twenty-one template. One of the things I want to do is to change the direction of the buttons in the card-headers so instead of like this: It will be like this: The only way I found to do it is by changing the class of the div for each one of them from "float-right" to "float-left". I tried doing it with javascript - something like that: document.querySelectorAll("div .card-header h3.card-title.m-0 .float-right")[0].classList.add("float-left"); document.querySelectorAll("div .card-header h3.card-title.m-0 .float-right")[0].classList.remove("float-right"); Is this the best way to achieve my goal? with the above scenario I have to add the code for each one of the card-headers . I tried doing it with this function: var cardHeaderLength = document.querySelectorAll("div .card-header h3.card-title.m-0 .float-right").length; var cardHeader =document.querySelectorAll("div .card-header h3.card-title.m-0 .float-right"); for (var i = 0; i < cardHeaderLength; i++) { cardHeader[i].classList.add("float-left"); cardHeader[i].classList.remove("float-right"); }; So my questions are: is there a better way to change the float direction without javascript or something like that? Regards, Ram
- 6 replies
-
- CSS
- javascript
-
(and 1 more)
Tagged with: