I want to display some text (Heading 1) on near the center line of the Carosel (over the top of the carosel image being displayed). I would like to line the align the text with the carosel control arrows ‘<’ & ‘>’ .
At the moment I am using the position : relative command and using the top : -115px to move the header text over the top of the image… this kind of works, but as the screen size changes the text doesnt stay aligned with the ‘<’ & ‘>’ carosel arrows. Is there a way that I can allign the text better in a dynamic way with the carosel control arrows??
I haven’t worked a lot with the Transform class so if this is wrong do let me know as I’m going by the logic in my head which isn’t always logical LOL…
When using the transform, do you need the top and left classes? Or the Position Absolute too?
You could also use and apply some of the applicable BS4 utility classes like shown here for example. Through the BSS ‘options panel’ you have access to d-flex, align-items-center, justify-content-center, etc.,