开发者

how to customize formastic style?

I use the great form builder plugin 'formastic' to build a form. It is rather ugly though. How can I set style to it? I find little information throu开发者_Go百科gh the documentation. Note: I use the newest 1.2.3. with ruby 1.8.7 and rails 3.0.3.


If you used the formtastic generator (rails generate formtastic:install), you have two CSS files in the public/stylesheets subdirectory, called formtastic.css and formtastic_changes.css. Look into the first one to see how formtastic sets the default styles, and then override these in formtastic_changes.css.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜