Clear Helper plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install git://github.com/phallstrom/clear_helper.git
Example
=======
<%= clear %> < div style="clear:both; height: 0; max-height: 0; line-height: 0;"> < /div> <%= clear(:left) %> < div style="clear:left; height: 0px; max-height: 0px; line-height: 0px;"> < /div>
Failure to specify the unit for the height will default to 'px'.
<%= clear(:right, 10) %> < div style="clear:left; height: 10px; max-height: 10px; line-height: 10px;"> < /div>
If the first value is not one of 'both', 'left', or 'right' it will be assumed to be the height and will default to 'both'.
<%= clear('2.5em') %> < div style="clear:both; height: 2.5em; max-height: 2.5em; line-height: 2.5em;"> < /div>
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: hardway, about 1 month ago

