Something Like that:
max height all div
For that you need to create first html code.
HTML
<ul class="download_c"> <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500 Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</li> <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</li> <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</li> <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</li> <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500 Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</li> <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</li> <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</li> <li>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</li> </ul>
CSS
* { box-sizing: border-box; } .download_c { list-style: none; padding: 0; width: 100%; float: left; } .download_c li { float: left; background: #ccc; padding: 10px; border: 1px solid #fff; width: 25%; }
[codepen_embed height=”265″ theme_id=”0″ slug_hash=”BdPvzN” default_tab=”html,result” user=”pradeepanvi”]See the Pen normal ul list with bg by Pradeep Kumar (@pradeepanvi) on CodePen.[/codepen_embed]
Now you can see
Now add jQuery code
Use jQuery Library.
After that add this JQuery code.
JS
if(window.innerWidth > 767){ var h3height = 0; $('.download_c li').each(function() { if(h3height < $(this).outerHeight()){ h3height = $(this).outerHeight(); }; }); $('.download_c li').height(h3height); }
[codepen_embed height="265" theme_id="0" slug_hash="yoqQmV" default_tab="html,result" user="pradeepanvi"]See the Pen set max height all div jQuery by Pradeep Kumar (@pradeepanvi) on CodePen.[/codepen_embed]
Now you can see
We have other jQuery code as well.
Use jQuery Library.
After that add this JQuery code.
JS
equalheight=function(t){var i,e=0,h=0,r=new Array;jQuery(t).each(function(){if(i=jQuery(this),jQuery(i).height("auto"),topPostion=i.position().top,h!=topPostion){for(currentDiv=0;currentDiv<r.length;currentDiv++)r[currentDiv].height(e);r.length=0,h=topPostion,e=i.height(),r.push(i)}else r.push(i),e=e<i.height()?i.height():e;for(currentDiv=0;currentDiv<r.length;currentDiv++)r[currentDiv].height(e)})}; equalheight('.download_c li');
[codepen_embed height="265" theme_id="0" slug_hash="gxjyZr" default_tab="html,result" user="pradeepanvi"]See the Pen set max height all div jQuery 02 by Pradeep Kumar (@pradeepanvi) on CodePen.[/codepen_embed]
Now you can see