• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: How can I vertically align a div within bootstrap 5 carousel on all screen sizes?

Resolved: How can I vertically align a div within bootstrap 5 carousel on all screen sizes?

0
By Isaac Tonny on 16/03/2023 Issue
Share
Facebook Twitter LinkedIn

In this post, we will see how to resolve How can I vertically align a div within bootstrap 5 carousel on all screen sizes?

Question:

I would like the text div inside a bootstrap 5 carousel to be vertically aligned (centered) on large and small (mobile) screens.
The site is here…
https://bootstrapmade.com/demo/templates/Flattern
Here is the html for the div. The div that needs to be centered is has the css class
Here is the html for the carousel…
Thanks for your help
I tried removing position absolute from #hero .carousel-container while adding aligns-items-center to the parent div (carousel-item) but it does not seem to help

Best Answer:

There are many way using which you can vertically center that div but the way css you have use and i assume that you have knowledge of css positioning property so just change your css with given below.
Hope that work for you ๐Ÿ™‚

If you have better answer, please add a comment about this, thank you!

Source: Stackoverflow.com

bootstrap-5 css flexbox html twitter-bootstrap
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: Using AWK to count multiple patterns in a file

01/04/2023

Resolved: significance letter above bar graphic in wrong order

01/04/2023

Resolved: VBA – Applying border around the areas with value/text

01/04/2023

Comments are closed.

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.