Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffshaver committed Jan 10, 2014
1 parent 2b92b4c commit fb64de2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ The data-vhmin="true" attribute is what indicates this element should be at leas

The only other option that is allowed is data-vhmin-offset="number". Adding this to your element will subtract pixels from the elements height

// Will remove 100 px from the viewport height
<!-- Will remove 100 px from the viewport height -->
<div id="element-that-needs-viewport-height" data-vhmin="true" data-vhmin-offset="100"></div>

<!-- Will remove the height of the header element from the viewport height -->
<div id="element-that-needs-viewport-height" data-vhmin="true" data-vhmin-offset="header"></div>

<!-- Will not remove anything from the viewport height -->
<div id="element-that-needs-viewport-height" data-vhmin="true"></div>

Once that is done, on load, call:

Expand Down

0 comments on commit fb64de2

Please sign in to comment.