View Full Version : Line Breaks in IE 6

05-02-2006, 01:08 PM
In my web app I have a an html string that is output like this to the browser:

<td class="BREADCRUMBS"><div class="Inner_td"> Visited: <a href="webpage.jsp"> Locations </a> | <a href="webpage.jsp"> Times </a>

The associated css:

td.BREADCRUMBS div {width:180ex;padding-top:4px}

The result if Firefox is as would be expected. In IE 6 pc I get line breaks before and after every <a> tag like:


anyone seen something like this before? anyone know of a style attribute of a surrounding element that would cause this?

05-02-2006, 01:17 PM
Other than the ex unit is rather unusual outside print style sheets, no; try a different width, or give the div a background color to see if the width is sufficient for both links to sit in.

And, if possible, please remove your other (double) post.

05-02-2006, 01:26 PM
sorry about the double post.... The width of the cell and div are confirmed to be more than wide enough to fit the links. when I disable css, they sit properly on one line though, so I think there maybe some rouge attribute somewhere....it has alot of parent elements so its not really practical for me to post all the css. Its definitely wide enough... I also tried adding a whitespace:nowrap; to no avail.

05-02-2006, 01:47 PM
Could you post a link to the page online? There's a good chance that there's something somewhere else in any of your styles that may cause this.

05-02-2006, 02:08 PM
sorry, internal cvs so i can't post a link. I'm just hoping someone has run into a similar bug or recognizes what attribute might be doing this

05-02-2006, 09:37 PM
Why is your td width 180ex instead of 180 pixels? Could just be a typo but I thought it worth mentioning.

05-02-2006, 10:27 PM
another developer set that to ex (not sure why myself), I'm just trying to figure out why this is behaving this way. ex or px does not affect this issue here though.