Twitter bootstrap: Why don't .row or .row-fluid have height?

I am new to Twitter bootstrap platform, but have been a web developer for a year. Just wondering why .row or .row-fluid has no height at all?

I use padding: for the container, to make the height so that my background image is visible. And I found that I have to do this all the time !!! How to solve this problem? Most of my div elements have no content, but a different background image. Thanks.

+4
source share
1 answer

.row and .row-fluid were supposed to be the building blocks of the twitter bootstrap grid and were not intended to be presented, but rather to contain, as the name suggests, how else would the block lines be represented ?. Although you can easily add height to the lines if your application calls it by creating a new class with the level you need and adding it to the div lines. Or better yet, add the height of your divs with an attached background.

+5
source

Source: https://habr.com/ru/post/1398979/


All Articles