SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict miggl's Avatar
    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? Thanks
    Last edited by miggl; Oct 2, 2007 at 08:55.
    Celebrate Liberty, Freedom, and Rights at The Constitutionalist.

  2. #2
    SitePoint Addict miggl's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •