Forum: Ruby on Rails rhtml: are carriage returns treated differently in IE vs FF?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A1e31c8872289429a3ff1ad497cf4140?d=identicon&s=25 koloa (Guest)
on 2007-03-08 02:24
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. =(
A1e31c8872289429a3ff1ad497cf4140?d=identicon&s=25 koloa (Guest)
on 2007-03-08 03:10
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.

http://validator.w3.org/
83b5c9943dd360dc52ea71a593f9b584?d=identicon&s=25 donut donut (donut)
on 2007-03-08 03:56
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/doubl....

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.  http://en.wikipedia.org/wiki/Quirks_mode
This topic is locked and can not be replied to.