ducksboard / gridster.js

gridster.js is a jQuery plugin that makes building intuitive draggable layouts from elements spanning multiple columns
http://gridster.net/
MIT License
6.04k stars 1.2k forks source link

gridster.css specifically style elements with class "gridster" #487

Open matteodem opened 9 years ago

matteodem commented 9 years ago

Great library! I got a bit confused, because of following:

"Class names and tags are customizable, gridster only cares about data attributes. Use a structure like this:"

But if I have a look at the css (https://github.com/ducksboard/gridster.js/blob/master/src/jquery.gridster.css) I see that elements with the specific class gridster get styled so that the library works. I don' see that this class get's added anywhere in the core. Have I missed something?

cfredericks-zync commented 9 years ago

Yes but no.
That's apparently just the initial 'bootstrap' CSS - the actual positions of each element is built into a JS compiled style sheet. Just peak at the source with Inspector on one of the demos.