Sent by kevin D. white on 15 April 2003 16:04
Andrew_Wisniewski wrote:
> Hi folks,
>
> I'm having trouble reproducing in Netscape 4.72 what easily works in IE.
>
> I've set up a test page http://www.myarea.com.au/testing/test.html which shows a span floated
left inside another span floated left that has a background image. Netscape seems to grab the
background from the outer span and shifts it downward and to the right in the inner span. I've tried
all sorts of padding, margin etc but can't seem to get it to work like it does in IE.
>
> Am I missing something?
NS4 tends to really screw up inheritance of CSS calls. Unusual
background inheritance is a really good example of the general problem.
All you need to do is set an explicit background for the inner SPAN. I
just did a test where I set the background color to #637fbe, which seems
to be the center color of your background image. The result worked
reasonably well in NS4. You will have to play with padding though to get
a decent result in all browsers. You may also want to put a Strict
DOCTYPE on the page to minimize box-model differences.
--
---
kevin D. white
im, simplecypher
---
--
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/