![]() |
need help with cascading stylesheets...
i'm trying to get my thumbs to turn "grey" when they have been visited. i'm calling my .css file with the code "<link rel=stylesheet href=stylesheet.css type=text/css>" in my html header. i have tried inserting ".visited { FILTER: Gray }" in my .css file but it doesn't seem to work. what am i doing wrong?
|
:( :helpme :(
|
er, if you have seen it done at any other site you can STEAL the code, view/source code try it ;)
|
Perhaps thecpathcto thecstyle sheet is incorrect?
|
ripped from madthumbs.com:
A:visited img {FILTER: "Gray"; border-thickness: 1px; border-color: #000000} |
the codes in .css files are used a little bit differently and not viewable to surfers. :Oh crap
|
ok i will try that nickless... :thumbsup
|
Quote:
8chars |
agnostic beliefs. desecrate the holy.
|
wait a sec... i already tried that code nickless... read my first post... :Oh crap
|
Quote:
|
a visited: {color:CCCCCC};
If your image is a link, then you don't need to tell the css that it is. In some browsers, that will "confuse" it. Only problem is that the above will turn ALL of your visited links grey. |
Quote:
|
yeah you right... but... still didn't work... :Oh crap
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
here's my .css file...
a:link { text-decoration: none; color: #4E3C1D; } a:visited { text-decoration: none; color: #4E3C1D; } a:hover { text-decoration: none; color: #FFFFFF; } a:hover img { border: 1px solid #FFFFFF; } a:active { text-decoration: none; color: #FFFFFF; } |
Wierd. I have an issue like yours with one of My sites. Seems I can see the links correctly in Opera, but no one else seems able to see the right damn color. *sigh*
|
Quote:
|
Quote:
|
change:
Quote:
a:visited img {FILTER: "Gray"; border-thickness: 1px; border-color: #000000} |
Quote:
|
Quote:
|
Your code and Nickless code are not the same. try his it works. myou might also try putting the code directly in the file and not draw it from a seperate css file.
|
Quote:
|
nickless's code worked but usually when i see this done on other sites the images turn gray even if you right click on them. mine only turn gray if you actually left click on the image which isn't bad...
|
when i refresh the page all the images that i visited go back to normal color which is normal. but i also have images to these dvd movies at the bottom of my page that stay gray even when the page is refreshed... why? kinda don't want these dvd covers to stay gray..
|
actually forget all of this.. i'm also having some bugs showing up in my toplist because of the code. i'm going to use my orginal css code. thanks anyways for the help guys! :)
|
Quote:
|
yeah was thinking the samething bro. not worth the hassle. screw making the images go gray... lol...
|
<style>
a:hover img {FILTER:Grey} a:active img {FILTER:Grey} </style> |
All times are GMT -7. The time now is 08:15 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123