# Margin in body(css problem)

**URL:** <https://www.ruby-forum.com/t/margin-in-body-css-problem/144147>\
**Category:** Rails\
**Created:** [July 25, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/margin-in-body-css-problem/144147 "2008-07-25T21:43:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![torso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/34f0e0/32.png) [@torso](https://www.ruby-forum.com/u/torso)\
**Post date:** [July 25, 2008, 9:43pm UTC](https://www.ruby-forum.com/t/margin-in-body-css-problem/144147/1 "2008-07-25T21:43:26Z")

</div>

Hi

I have problem which contains css in rails.

Here’s the sample  
CSS:  
body{  
padding:0px;  
margin:0px;  
}  
#test{  
background-color:red;  
}  
HTML:

 test

Okey it should go to the TOP of the page and make test text with red  
background. But before the test div it makes line which height is  
about 10px. Why rails does that, and how I can overide it?

---

<div class="post-metadata">

**Author:** ![torso](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/34f0e0/32.png) [@torso](https://www.ruby-forum.com/u/torso)\
**Post date:** [July 25, 2008, 11:40pm UTC](https://www.ruby-forum.com/t/margin-in-body-css-problem/144147/2 "2008-07-25T23:40:09Z")

</div>

by the way it’s only firefox problem, with ie rails do it right but  
not with firefox
