EqualHeight jQuery Plugin
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 - 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();
Developer | Nicky Christensen |
Username | NickyCDK |
Uploaded | September 29, 2022 |
Rating | 3 |
Size | 2,596 Kb |
Views | 14,168 |
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!
Name | Size |
TweenMax scale and rotate animation | 2,288 Kb |
Animated Navigation with Tweenmax, Sliding Effect | 3,567 Kb |
CSS3 Loading Animation | 2,140 Kb |
Chart JS example with gradient | 1,967 Kb |
Greyscale image with filter in CSS3 | 1,562 Kb |
CSS3 Snow Animation | 1,695 Kb |
Filtering with jQuery using data attributes | 2,359 Kb |
Slick Slider Custom Navigation | 2,601 Kb |
CSS Animated Tooltip | 3,043 Kb |
Open Door Effect | 1,516 Kb |
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!
Name | Username | Size |
Stylize Stories | Jvhti | 2,465 Kb |
Social.svg.min | Larsenwork | 13,849 Kb |
FreeCodeCamp - Simon Game | Ivhed | 8,481 Kb |
Mondrian | Chrisarmstrong | 2,787 Kb |
Out of the blue | Giaco | 2,537 Kb |
A Pen by Alex Edwards | Exards | 8,218 Kb |
Mesmerizing octopus | Jllodra | 3,549 Kb |
CSS Chat Bubbles | Boylett | 2,094 Kb |
Wikipedia Viewer | Thomasvaeth | 2,549 Kb |
Angular Route | Arun_v606 | 1,837 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!