I am creating a website for a company at this link . However, each box is misaligned if you enter the name of a property with more than 2 lines.
I tried to fix it with a white-space:nowrap
and they accommodated, but obviously it's not the right thing because the words overlap.
Items are being displayed like this (see full page):
The problem is that you are putting all the elements in the same row, this makes Bootstrap arrange them as it sees fit. To keep them in their column you can create a row for each group, example:
Have you tried encapsulating groups of 4 properties inside a .row?
Namely...
It is very important to be clear about how the grid works when using Bootstrap.
In the Bootstrap grid, the unit of measure is "Columns" being a total of 12 which forms a row, I give you some examples:
Example 1:
Example 2:
Example 3:
As you can see, all the rows are made up of 12 columns. If you do not comply with this, the columns will be disarranged because they have space to do so, and because they are not well declared within a row (row)
Take a look at the official documentation for Bootstrap's grid system http://getbootstrap.com/css/#grid-example-basic
Test a property that is called
text-overflow: ellipsis;
together withoverflow: hidden;
.Why don't you try to use the library
masonry
, what it does is group all the boxes without there being jumps from one to another by heightI leave you an example and the link to the library: http://masonry.desandro.com/
But also what you can do is add a
min-height
to the boxesHope this can help you