Current location: Hot Scripts Forums » General Web Coding » CSS » On rollover background shown


On rollover background shown

Reply
  #1 (permalink)  
Old 01-22-07, 03:01 PM
zitwep zitwep is offline
Wannabe Coder
 
Join Date: Aug 2005
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
On rollover background shown

Hello,

Code:
<style type="text/css">
.contactTable 
{
width:400px!important; 
height:300px!important; 
padding:0px!important; 
background-image:url("http://www.agamingday.com/myspace/ContactBlock.gif"); 
background-attachment:scroll; 
background-position:center center; 
background-repeat:no-repeat; 
background-color: transparent;
}

.contactTable table, table.contactTable td 
{
padding:0px !important; 
border:0px; 
background-color: transparent;
}

.contactTable a img 
{
visibility:hidden;
border:0px!important;
}

.contactTable a 
{
display:block; 
height:28px; 
width:115px;
}

.contactTable .text 
{
font-size:1px!important;
}

.contactTable .text, .contactTable a, .contactTable img 
{
filter:none!important;
}

</style>

This is what I use for a contact block on myspace.

But when I rollover a link the background is shown instead of the background image. Does anyone have an idea why that could be?


http://profile.myspace.com/index.cfm...ndid=150532344

You can check out yourself there on the contact table.

Would be glad for help!

Thanks in advance
zitwep
Reply With Quote
  #2 (permalink)  
Old 01-23-07, 02:16 AM
jfulton's Avatar
jfulton jfulton is offline
Community VIP
 
Join Date: Apr 2006
Location: Los Angeles, CA
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
I don't see any backgrounds on links at all...could you be a little bit more specific about what you're seeing and what you are trying to get it to do?
Reply With Quote
  #3 (permalink)  
Old 01-23-07, 06:14 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
Quote:
Originally Posted by jfulton
I don't see any backgrounds on links at all...could you be a little bit more specific about what you're seeing and what you are trying to get it to do?
you have to open it in IE, not mozilla
the problem is located in the contact table (check for "add me")

i myself don't have any suggestions on how to fix it. or maybe, you could change the background settings of the link element to transparent:
Code:
.contactTable a 
{
display:block; 
height:28px; 
width:115px;
background:transparent;
}
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #4 (permalink)  
Old 01-24-07, 06:25 PM
jfulton's Avatar
jfulton jfulton is offline
Community VIP
 
Join Date: Apr 2006
Location: Los Angeles, CA
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by UnrealEd
you have to open it in IE, not mozilla
Of course! Hahah.

Well, it's happening when you mouseover the link. That means that something is up with some of your a:hover css rules. Since I don't see any, I'm going to assume that it's declared somewhere else in a more general fashion and that's what's causing the background color to appear. If you don't want the hover to change anything, try doing something like this:


Code:
.contactTable a:link img
, .contactTable a:visited img
, .contactTable a:hover img
, .contactTable a:active img
{
visibility:hidden;
border:0px!important;
background-color:transparent;
}

.contactTable a:link
, .contactTable a:visited
, .contactTable a:hover
, .contactTable a:active 
{
display:block; 
height:28px; 
width:115px;
background-color:transparent;
}

.contactTable .text
, .contactTable a:link
, .contactTable a:visited
, .contactTable a:hover
, .contactTable a:active
, .contactTable img 
{
filter:none!important;
}
See if that points you in the right direction.

http://www.w3schools.com/css/css_pseudo_classes.asp
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl/CGI Script to background process weilies Perl 3 07-18-06 08:19 PM
Background over objects miniature CSS 3 05-03-06 06:23 PM
Background image for iframe same as main page riots HTML/XHTML/XML 6 02-17-06 11:22 AM
rollovers using a background image pagetta CSS 6 04-04-05 03:25 PM


All times are GMT -5. The time now is 01:59 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.