SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Oct 2, 2007, 08:25 #1
- Join Date
- Feb 2007
- Location
- Los Angeles, CA
- Posts
- 286
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Solved: Replacing innerHTML causes linebreak in IE, not in FF
Hi All!
I am replacing the innerHTML of a table cell (td) with an image and text. In Firefox they display next to each other (as intended), however, in IE the text appears under the image, as if there were a line break. I added nowrap="nowrap" and style="white-space: no-wrap;" to the table cell, but all to no avail. IE continues to display with a line break.
Any ideas how this can be avoided? ThanksLast edited by miggl; Oct 2, 2007 at 08:55.
Celebrate Liberty, Freedom, and Rights at The Constitutionalist.
-
Oct 2, 2007, 08:54 #2
- Join Date
- Feb 2007
- Location
- Los Angeles, CA
- Posts
- 286
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Well, nevermind.
hehe I found the problem: I had another CSS that was setting the display to "block" on all images (this was the IE PNG FIX). Removing that resolved the line-break issue.
Celebrate Liberty, Freedom, and Rights at The Constitutionalist.
Bookmarks