SkillAgentSearch skills...

Jquery.responsiveheight

This plugin calculates height relative to elements on responsive webdesign

Install / Use

/learn @marcelokubart/Jquery.responsiveheight
About this skill

Quality Score

0/100

Category

Design

Supported Platforms

Universal

README

jquery.responsiveheight

About

This plugin calculates height relative to elements on responsive webdesign

When starting my work with responsive web design difficulties encountered in working with the Height property when using CSS sprites. This plugin calculates the height of an element relative to its width.

Expression:

Coefficient Height = Height Layout / Width Layout

Height = Current Width * Coefficient Height

Coefficinet Height is a HRELATION attribute of the element

Usage

HTML

<pre> &lt;div id="div-eg" data-hrelation="0.56"&gt;&lt;/div&gt; </pre>

JavaScript

<pre> $(document).ready(function(){ $('#div-eg').responsiveheight(); }); </pre>
View on GitHub
GitHub Stars46
CategoryDesign
Updated9mo ago
Forks11

Languages

JavaScript

Security Score

67/100

Audited on Jul 5, 2025

No findings