// CSS Fix // ======== $(window).bind("load", function() { // product box heights // title and description var $nMaxHeight = 0; $(".title_and_desc").each(function(){ // If this box is bigger than the current max if($(this).height() > $nMaxHeight) { // Set the max height to this boxes height $nMaxHeight = $(this).height(); } }); // For each box, set it's height to the max $(".title_and_desc").each(function(){ $(this).height(Math.ceil($nMaxHeight)); }); // item code var $nMaxHeight = 0; $(".itemcode").each(function(){ // If this box is bigger than the current max if($(this).height() > $nMaxHeight) { // Set the max height to this boxes height $nMaxHeight = $(this).height(); } }); // For each box, set it's height to the max $(".itemcode").each(function(){ $(this).height(Math.ceil($nMaxHeight)); }); // price box var $nMaxHeight = 0; $(".ShopProd_Listing_Price").each(function(){ // If this box is bigger than the current max if($(this).height() > $nMaxHeight) { // Set the max height to this boxes height $nMaxHeight = $(this).height(); } }); // For each box, set it's height to the max $(".ShopProd_Listing_Price").each(function(){ $(this).height(Math.ceil($nMaxHeight)); }); // main box var $nMaxHeight = 0; $(".product.CatListBox.ProductResult").each(function(){ // If this box is bigger than the current max if($(this).height() > $nMaxHeight) { // Set the max height to this boxes height $nMaxHeight = $(this).height(); } }); // For each box, set it's height to the max $(".product.CatListBox.ProductResult").each(function(){ $(this).height(Math.ceil($nMaxHeight)); }); // set category result boxes to the same height $nMaxHeight = 0; $(".product.CatListBox.CategoryResult").each(function(){ // If this box is bigger than the current max if($(this).height() > $nMaxHeight) { // Set the max height to this boxes height $nMaxHeight = $(this).height(); } }); // For each box, set it's height to the max $(".product.CatListBox.CategoryResult").each(function(){ $(this).height(Math.ceil($nMaxHeight)); }); });