Fixed a few bugs related to 'auto'.
Added data-* attributes to grid elements.