I am looking for a bootstrap chief who can help me building a simple grid … I am too stupid to do so ans even cannot describe it well enough for ChatGPT. I hope this doesn’t take a lot of efforts:
At the top of the page is a banner over full width with a picture (already done and working). Height 80px
Below is a "grid" that has following conditions:
3 columns, col-4 each (responsive not required) The rest of the height (full – the banner height) is split into 8 equal "segments". Column 1 has two "items" (will be cards) one with 4 segments height, and the second one also with 4 segments height. The sound one spans also to column2 (so it has a width of 8) on top of this, also a 4 heights item is available. So the design should be like this:
Column 3 has 3 items with following heights: 1st item height 2 2nd item height 1 3rd item height 5
Maybe someone can easily crate this. Thanks
I tried to work with columns and rows but was not able to make it
2
Answers
I hope this helps you. This code will create a responsive grid with the specified column and item heights. It uses Bootstrap’s grid system to achieve the desired layout.
Please note that you may need to adjust the column classes (col-md-4) based on your specific requirements. You can modify the content and styling of the items (item class) to suit your needs.
If you set a suitable, minimum height for your
.container
you can achieve this by utilizing the bootstrap.row
s and.col-*
s with the built-in.h-*
utility classes and defining two more of your own i.e..h-one-eighth
&.h-five-eighths
.Below is a fully responsive example of your requirements in action: