RubyGems.org

# CenterHtmlElements This gem programmatically alters CSS to keep HTML elements centered even when the window is resized, bundled as a Rails Engine ## Installation Add this line to your application's Gemfile: gem 'center_html_elements' And then execute: $ bundle Or install it yourself as: $ gem install center_html_elements ## Testing Download jquery and save it as "<root>/test/jquery-1.8.1.min.js" (the jquery version shouldn't matter, but use this name to make it play nicely with the test and with .gitignore) Open index.html and follow instructions there. ## Usage $(some-DOM-element).keep_centered();

installgem install center_html_elements
Authors

Isaac Betesh

3,764 total downloads 984 for this version
Owners

B8dc4b76792ff3c8cd993aa4c9c467f6

Gemfile
gem 'center_html_elements', '~> 0.0.7'
Versions
  1. 0.0.7 October 31, 2012 (6 KB)
  2. 0.0.5 October 7, 2012 (6 KB)
  3. 0.0.4 September 4, 2012 (6 KB)
  4. 0.0.3 September 4, 2012 (6 KB)
Show all versions (7 total)
Runtime Dependencies
  1. jquery-rails >= 0