# Rhtml: are carriage returns treated differently in IE vs FF?

**URL:** <https://www.ruby-forum.com/t/rhtml-are-carriage-returns-treated-differently-in-ie-vs-ff/88089>\
**Category:** Rails\
**Created:** [March 8, 2007, 2:24am UTC](https://www.ruby-forum.com/t/rhtml-are-carriage-returns-treated-differently-in-ie-vs-ff/88089 "2007-03-08T02:24:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![koloa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/4bbf92/32.png) [@koloa](https://www.ruby-forum.com/u/koloa)\
**Post date:** [March 8, 2007, 2:24am UTC](https://www.ruby-forum.com/t/rhtml-are-carriage-returns-treated-differently-in-ie-vs-ff/88089/1 "2007-03-08T02:24:38Z")

</div>

hi,  
Ive been trying to debug why my sites div page content floats all the  
way to the left and not within its main place where it belongs!..my  
site shows correctly in firefox but not in internet explorer. i ran a  
diff on the generated html file and css file. they are all identical  
except for the carriage returns. will this cause a problem with  
rendering content?

everything seems to be identical but in IE my div is just not  
responding. =(

---

<div class="post-metadata">

**Author:** ![koloa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/4bbf92/32.png) [@koloa](https://www.ruby-forum.com/u/koloa)\
**Post date:** [March 8, 2007, 3:10am UTC](https://www.ruby-forum.com/t/rhtml-are-carriage-returns-treated-differently-in-ie-vs-ff/88089/2 "2007-03-08T03:10:34Z")

</div>

lets just say i learned an important leasson of how important the header  
part of the layout is!

also if you notice in ff things look good but not in ie…run your html  
through this.

> **[The W3C Markup Validation Service](https://validator.w3.org/)**
>
> W3C's easy-to-use
> markup validation service, based on SGML and XML parsers.

---

<div class="post-metadata">

**Author:** ![koloa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/4bbf92/32.png) [@koloa](https://www.ruby-forum.com/u/koloa)\
**Post date:** [March 8, 2007, 3:56am UTC](https://www.ruby-forum.com/t/rhtml-are-carriage-returns-treated-differently-in-ie-vs-ff/88089/3 "2007-03-08T03:56:38Z")

</div>

koloa wrote:

> hi,  
> Ive been trying to debug why my sites div page content floats all the  
> way to the left and not within its main place where it belongs!..my  
> site shows correctly in firefox but not in internet explorer. i ran a  
> diff on the generated html file and css file. they are all identical  
> except for the carriage returns. will this cause a problem with  
> rendering content?
> 
> everything seems to be identical but in IE my div is just not  
> responding. =(

Carriage returns don’t matter.

IE 6 and below(probably IE7 too) have some rendering problems that might  
affect the look of your page. Your pages may be affected by the double  
margin counting bug which makes your float divs wider than they are(so  
they’re pushed down to the next line). Try adding display: inline; to  
all your float styles. See  
[http://www.positioniseverything.net/explorer/doubled-margin.html](http://www.positioniseverything.net/explorer/doubled-margin.html).

Also make sure you have the rendering mode specified on every page(do it  
in your layout template) or else you don’t really know which mode the  
browser uses. [Quirks mode - Wikipedia](http://en.wikipedia.org/wiki/Quirks_mode)
