Forum Moderators: not2easy

Message Too Old, No Replies

Help! Unwanted line-break in IE

         

jonny_h

10:24 am on Sep 14, 2005 (gmt 0)

10+ Year Member



I'm just putting a new template together and in a text area I've got a line break for no apparant reason before the last word. This is only happening in IE.

I've seen this loads before so it must be a fairly common bug. with the relevant HTML being:

<div id="leftColumn">
<div class="navTop"></div>
<div id="leftMenu"></div>
<div id="leftAd">
<div id="ad1">
<span class="ad">Depending on your marketing or sales needs we can create artwork that will fit in with your existing website or that dictates the look of you new one. Whether you need a 3D environment creating to sell a product, a character that will be associated to your service, we have the skill and creativity to deliver something new and fresh each time.</span>
</div>
</div>
</div>

and the CSS:

/* --- left column --- */
#leftColumn { float:left; width:237px; text-align:left; }
#leftColumn .navTop { background: url(img/dcd-left-nav-top.jpg); font-size:0; width:237px; height:16px; }
#leftMenu { background: url(img/dcd-left-nav.gif); width:237px; height:195px; }
#leftAd { margin-top:8px; background: url(img/dcd-left-ad1.gif); width:237px; height:280px; }
#ad1 { position:relative; top:162px; left:21px; width:200px; height:115px; }

/* --- general styles --- */
.ad { font-size:9px; color:#333; line-height:11px; }

Cheers,
Jon.

[edited by: SuzyUK at 11:23 am (utc) on Sep. 14, 2005]
[edit reason] ooops sorry no URLs : see TOS #13 [WebmasterWorld.com] [/edit]

jonny_h

10:28 am on Sep 14, 2005 (gmt 0)

10+ Year Member



I seem to always do this. Solution - I put a space at the end of the text before the closed span tag.