[css-d] Mouse hover on image problem

2008-09-02 Thread Kamru Miah
Hello,
My companying uses a standard template for all Intranet applications 
with an number image links,

e.g.
a href=/
   img src=/templates/images/intrahome.gif alt=intranet home 
class=navTabs
/a

In my own style-sheet I have added a background colour to all mouse 
hover using the code below:

a:hover {
   color: #ff; background: #b0e0e6;
}

The above background colour hover works fine with text links, but not if 
it has an image.

I am a new to CSS and do not know why a colour block appears above the 
image when I hover over it, rather than behind?

Any help will be appreciated.

Regards,

Kamru
-- 

__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Mouse hover on image problem

2008-09-02 Thread Conyers, Dwayne
Kamru Miah [EMAIL PROTECTED] ink wired:
 I am a new to CSS and do not know why
 a colour block appears above the image
 when I hover over it, rather than behind?
Is your image in a div or other container that is displaying the color?

--
The generation that used acid to escape reality is now taking antacid to deal 
with reality.
http://blog.dwacon.com
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/


Re: [css-d] Mouse hover on image problem

2008-09-02 Thread Kamru Miah
The image is inside a table cell, which has another background image, i.e.:

 td style=
   background-color: ###banner#;
   background-image: url(/templates/images/#bannerImage#);
   background-repeat: no-repeat;
   text-align: right;
   line-height: 35pt;
 
 .
 .
 .
 a href=/
   img src=/templates/images/intrahome.gif alt=intranet 
home class=navTabs #request.xhtmlStr#
 /a
 .
 .
 .
 /td

Conyers, Dwayne wrote:
 Kamru Miah ink wired:
 I am a new to CSS and do not know why
 a colour block appears above the image
 when I hover over it, rather than behind?
 Is your image in a div or other container that is displaying the color?
 
 --
 The generation that used acid to escape reality is now taking antacid to deal 
 with reality.
 http://blog.dwacon.com
 
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/