I've encountered an issue while working on a website that features a list of items. When the title, such as "roller blinds," spans across two lines, it disrupts the layout below. How can I prevent this from happening without compromising on having longer titles?
CSS:
#solutions-categories .inner-box{
padding:20px;}
#solutions-categories ul{
padding:0;
margin:0px -10px;
list-style:none;}
#solutions-categories ul li.solution-category{
width:25%;
float:left;
padding:0px 10px 40px 10px;}
.solutions-category-image{
margin-bottom:20px;}
.solutions-category-image img{
height:auto;
width:100%;}
.solutions-category-title h3{
margin: 25px 0px 15px 0px;}
.solutions-category-title .divider{
margin-bottom: 25px !important;}
Attempts to solve the problem by switching to floated divs instead of li elements or using JavaScript to set equal heights have been unsuccessful.