Jump to content


<script> kills float in Firefox?


5 replies to this topic

#1 skillet

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 24 September 2007 - 05:43 PM

When I insert javascript into a floated Div, it breaks everything in Firefox. It works fine in IE, but it seems like Firefox is rendering the <script> tag as a "block" and causing all the other floats in line to drop to the bottom.

Here's the code:
<script type="text/javascript" src="http://itde.vccs.edu/rss2js/feed2js.php?src=http%3A%2F%2Ffeeds.feedburner.com%2FTheSietch&chan=n&num=1&desc=0&date=n&targ=n"> </script>

Has anyone else ran into this problem?

#2 Hayden

    P2L Jedi

  • Members
  • PipPipPip
  • 716 posts
  • Gender:Male
  • Location:Texas

Posted 24 September 2007 - 10:37 PM

Where's the rest of your code? What are you doing with the DIV?

#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 24 September 2007 - 11:05 PM

Quote

Firefox is rendering the <script> tag as a "block"
Not possible.

What the script writes to the page maybe a block, but it's not the script tag itself.

#4 _*C++_*

  • Guests

Posted 27 September 2007 - 05:18 PM

IE can actually do something FF can't? What has the world come too!!?

#5 Av-

    I Feel Left Out

  • Members
  • PipPipPipPip
  • 1,971 posts
  • Gender:Male
  • Location:10 ft. below sea level

Posted 28 September 2007 - 06:52 AM

View PostC++, on Sep 27 2007, 10:18 PM, said:

IE can actually do something FF can't? What has the world come too!!?

IE actually does a lot of thing Firefox can't. But that doesn't necessarily mean IE is doing it right <_<

#6 faulk

    Young Padawan

  • Members
  • Pip
  • 72 posts
  • Gender:Male
  • Location:Moosup, CT
  • Interests:Web design<br />Music<br />Audio engineering<br />Baseball (red sox!)<br />Snowboarding<br />Video production<br />Web app development

Posted 28 September 2007 - 08:40 AM

script tag should only be placed in the head tag anyways (if you like sticking to valid xhtml)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users