EqualHeight jQuery Plugin

Size
2,596 Kb
Views
14,168

How do I make an equalheight jquery plugin?

What is a equalheight jquery plugin? How do you make a equalheight jquery plugin? This script and codes were developed by Nicky Christensen on 29 September 2022, Thursday.

EqualHeight jQuery Plugin Previews

EqualHeight jQuery Plugin - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>EqualHeight jQuery Plugin</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="site-container">	<div class="wrapper">	<div class="boxes row">	<section class="box gra-red">	<article>	<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p>	</article>	</section>	<section class="box gra-blue">	<article>	<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>	</article>	</section>	<section class="box gra-dark">	<article>	<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p>	<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. </p>	</article>	</section>	</div>	</div>	</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

EqualHeight jQuery Plugin - Script Codes CSS Codes

.site-container { }
.wrapper { margin:0 auto; width:980px; font-family:Verdana; font-size:11px; line-height:18px;}
.box { display:inline-block; vertical-align:top; width:33%; }
.box article { padding: 10px; }
.gra-red {	background: -moz-linear-gradient(top, #b50f0f 0%, #ed4747 100%); /* FF3.6+ */	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b50f0f), color-stop(100%,#ed4747)); /* Chrome,Safari4+ */	background: -webkit-linear-gradient(top, #b50f0f 0%,#ed4747 100%); /* Chrome10+,Safari5.1+ */	background: -o-linear-gradient(top, #b50f0f 0%,#ed4747 100%); /* Opera 11.10+ */	background: -ms-linear-gradient(top, #b50f0f 0%,#ed4747 100%); /* IE10+ */	background: linear-gradient(to bottom, #b50f0f 0%,#ed4747 100%); /* W3C */	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b50f0f', endColorstr='#ed4747',GradientType=0 ); /* IE6-9 */	color:#FFF;
}
.gra-blue {	background: -moz-linear-gradient(top, #18bfdf 0%, #0f90a9 100%); /* FF3.6+ */	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#18bfdf), color-stop(100%,#0f90a9)); /* Chrome,Safari4+ */	background: -webkit-linear-gradient(top, #18bfdf 0%,#0f90a9 100%); /* Chrome10+,Safari5.1+ */	background: -o-linear-gradient(top, #18bfdf 0%,#0f90a9 100%); /* Opera 11.10+ */	background: -ms-linear-gradient(top, #18bfdf 0%,#0f90a9 100%); /* IE10+ */	background: linear-gradient(to bottom, #18bfdf 0%,#0f90a9 100%); /* W3C */	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#18bfdf', endColorstr='#0f90a9',GradientType=0 ); /* IE6-9 */
}
.gra-dark {	background: -moz-linear-gradient(top, #444 0%, #111 100%); /* FF3.6+ */	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#444), color-stop(100%,#111)); /* Chrome,Safari4+ */	background: -webkit-linear-gradient(top, #444 0%,#111 100%); /* Chrome10+,Safari5.1+ */	background: -o-linear-gradient(top, #444 0%,#111 100%); /* Opera 11.10+ */	background: -ms-linear-gradient(top, #444 0%,#111 100%); /* IE10+ */	background: linear-gradient(to bottom, #444 0%,#111 100%); /* W3C */	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#444', endColorstr='#111',GradientType=0 ); /* IE6-9 */	color:#FFF;
}

EqualHeight jQuery Plugin - Script Codes JS Codes

/*! * Equal Height Plugin * * Copyright (c) 2013 Nicky Christensen * Dual licensed under the MIT and GPL licenses. * Uses the same license as jQuery, see: * https://docs.jquery.com/License * * @version 1.0 */
(function ($) { $.fn.equalHeight = function () { var tallest = 0; this.each(function () { var thisHeight = $(this).height(); if (thisHeight > tallest) { tallest = thisHeight; } }); return this.height(tallest); };
}(jQuery));
//Call on element
$( ".boxes section.box" ).equalHeight();
EqualHeight jQuery Plugin - Script Codes
EqualHeight jQuery Plugin - Script Codes
Home Page Home
Developer Nicky Christensen
Username NickyCDK
Uploaded September 29, 2022
Rating 3
Size 2,596 Kb
Views 14,168
Do you need developer help for EqualHeight jQuery Plugin?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Nicky Christensen (NickyCDK) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!