# Adding style attribute to authenticity\_token

**URL:** <https://www.ruby-forum.com/t/adding-style-attribute-to-authenticity-token/146579>\
**Category:** Rails\
**Created:** [August 22, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/adding-style-attribute-to-authenticity-token/146579 "2008-08-22T16:18:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christoph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/eb8c5e/32.png) [@christoph](https://www.ruby-forum.com/u/christoph)\
**Post date:** [August 22, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/adding-style-attribute-to-authenticity-token/146579/1 "2008-08-22T16:18:18Z")

</div>

Hi all !  
Whenever I call form\_for a div with margin:0 and padding:0 is created.  
Not only that is the default value in my application.css, I have no  
chance to override this attribute. In my application I display a list  
of items, using

 and - . Each li tag contains an form, which  
should be displayed in one line (as inline element). But I can’t set  
the div to display:inline. Does anybody know how to solve my problem ?

Thank you very much in advance,  
Christoph

---

<div class="post-metadata">

**Author:** ![christoph](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/eb8c5e/32.png) [@christoph](https://www.ruby-forum.com/u/christoph)\
**Post date:** [August 23, 2008, 11:51pm UTC](https://www.ruby-forum.com/t/adding-style-attribute-to-authenticity-token/146579/2 "2008-08-23T23:51:34Z")

</div>

Does nobody have any ideas ?
