Skip to content

Commit

Permalink
updated readme added note about modern browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
liabru committed Aug 24, 2018
1 parent 2446ac6 commit 4e9149c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# jquery.matchHeight.js #

> *matchHeight* makes the height of all selected elements exactly equal.
It handles many edge cases that cause similar plugins to fail.
> *matchHeight* makes the height of all selected elements exactly equal
[brm.io/jquery-match-height](http:https://brm.io/jquery-match-height/)

Expand All @@ -16,6 +15,10 @@ See the [jquery.matchHeight.js demo](http:https://brm.io/jquery-match-height-demo).

[![jquery.matchHeight.js screenshot](http:https://brm.io/img/content/jquery-match-height/jquery-match-height.png)](http:https://brm.io/jquery-match-height-demo)

### Modern browsers

In the years since this library was originally developed there have been updates to CSS that can now achieve equal heights in many situations. If you only need to support modern browsers then consider using [CSS Flexbox](https://css-tricks.com/snippets/css/a-guide-to-flexbox/) and [CSS Grid](https://css-tricks.com/snippets/css/complete-guide-grid/) instead.

### Features

- match the heights for groups of elements automatically
Expand Down Expand Up @@ -239,9 +242,3 @@ jquery.matchHeight.js is licensed under [The MIT License (MIT)](http:https://opensourc

This license is also supplied with the release and source code.
<br/>As stated in the license, absolutely no warranty is provided.

##### Why not use CSS?

Making robust, responsive equal height columns for _arbitrary content_ is [difficult or impossible](http:https://filamentgroup.com/lab/setting_equal_heights_with_jquery/) to do with CSS alone (at least without hacks or trickery, in a backwards compatible way).

Note you should probably ensure your layout is still usable if JavaScript is disabled.

0 comments on commit 4e9149c

Please sign in to comment.