Jump to content

[SOLVED] Transparency in Google Chrome


mattal999

Recommended Posts

OK, I have this:

 

.artist {
border: none;
float: left;
margin: 10px;
width: 75px;
height: 107px;
}

.artist a {
color: #000000;
text-decoration: none;
width: 75px;
opacity: 0.6;
filter: alpha(opacity=60);
-moz-opacity: 0.6;
}

.artist a:hover {
color:#000000;
opacity: 1;
filter: alpha(opacity=100);
-moz-opacity: 1;
}

.artist img {
border: none;
margin-bottom: 2px;
}

 

and this to make it:

 

<span class="artist"><center><a href="browsesongs.php?artist=<?php echo $song['artist']; ?>">
    	<img src="images/art.gif" class="art" width="75" height="75"><br><?php if(strlen($song['artist']) >= 20) { echo substr($song['artist'], 0, 20)."..."; } else { echo $song['artist']; } ?></a></center></span>

 

And it gives this result in Chrome, but its fine in IE:

 

helpoj1.jpg

 

Any ideas?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/123968-solved-transparency-in-google-chrome/
Share on other sites

I don't think you should be worrying about fixing minor issues in a beta-version of a new browser. No one bothers with the IE8 beta either.

 

However, Chrome is based on webkit and so you would expect it to be fine. Why don't you post the actual html source of the page (i.e. not your raw code with php in it) and the entire stylesheet, or provide a link to the actual page this is happening on, so that people can actually do some testing.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.