Span background-image bug?


Go Back   Computer Help Articles > Internet Explorer 6
User Name
Password
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-05-2006, 11:15 PM
Walker
 
Posts: n/a
Default Span background-image bug?

I have a span containing two words. Eg.

<span>Avant Garde</span>

Using CSS, I insert a background image (a bullet) to the left of the
text. Eg.

span {
padding: 0 3px 0 11px;
background: url(images/tagbull.gif) no-repeat 0px 2px;
}

The tag renders as expected...unless the line wraps in the middle of the
two words. Then the background-image doesn't appear. This only happens
in IE. It renders fine (as expected) in Firefox 1.5 and Opera 8.51. Is
this a known IE bug?

To see an example, browse to the following URL with IE6 (obviously) and
expand the "10 Tags" link:
<http://arty.me.uk/2006/01/04/announcing-avantist/>

Look at the words "Avant Garde" at the end of the first line.
Now do the same with Opera or Firefox.
--
Walker
arty.me.uk
Reply With Quote
  #2  
Old 01-06-2006, 02:07 AM
Alan Illeman
 
Posts: n/a
Default Re: Span background-image bug?

"Walker" <walker.moore@gmail.com> wrote in message news:eg5cySjEGHA.2040@TK2MSFTNGP14.phx.gbl...
> I have a span containing two words. Eg.
>
> <span>Avant Garde</span>
>
> Using CSS, I insert a background image (a bullet) to the left of the
> text. Eg.
>
> span {
> padding: 0 3px 0 11px;
> background: url(images/tagbull.gif) no-repeat 0px 2px;
> }
>
> The tag renders as expected...unless the line wraps in the middle of the
> two words. Then the background-image doesn't appear. This only happens
> in IE. It renders fine (as expected) in Firefox 1.5 and Opera 8.51. Is
> this a known IE bug?
>
> To see an example, browse to the following URL with IE6 (obviously) and
> expand the "10 Tags" link:
> <http://arty.me.uk/2006/01/04/announcing-avantist/>
>
> Look at the words "Avant Garde" at the end of the first line.
> Now do the same with Opera or Firefox.
> --
> Walker
> arty.me.uk


You need to be in news:comp.infosystems.www.authoring.stylesheets

As far as I know "span" is an inline element..

e.g.
..red { color: red; background-color: transparent; }
.....
<p>This is a <span class="red">red</span> letter day.</p>



Reply With Quote
  #3  
Old 01-06-2006, 02:07 AM
Walker
 
Posts: n/a
Default Re: Span background-image bug?

Walker wrote:
//
> To see an example, browse to the following URL with IE6 (obviously) and
> expand the "10 Tags" link:
> <http://arty.me.uk/2006/01/04/announcing-avantist/>


In case anybody is clicking and getting confused, this page will no
longer exhibit the problem because I got a fix via somebody in
comp.infosystems.www.authoring.stylesheets.

Google Groups link: <http://makeashorterlink.com/?P2AD45B6C>

I still don't know whether the original problem was an IE6 bug...so
it'll be interesting to see how IE7 deals with Span background-images.
--
Walker
arty.me.uk
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Background image that cannot be deleted...HELP! Magnum99 Windows XP Basics 6 01-05-2006 11:12 PM
Digital Image Suite (Transparent Background) Tommy Windows XP Photos 1 01-05-2006 07:09 AM
Digital Image Suite 2006 (Transparent Background) Tommy Windows XP Photos 1 01-05-2006 07:09 AM
Pop-up when I roll over a picture rurouni_crow Windows XP Photos 2 01-05-2006 07:07 AM
How to stop MS Paint changing resolution of files to 96 dpi? Dmitry Kopnichev Windows XP Photos 33 01-05-2006 07:06 AM


All times are GMT. The time now is 10:07 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.

Span background-image bug?