The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Black and white profile pictures

4 posters

Go down

In progress Black and white profile pictures

Post by MissUrsh Mon 29 Jul - 0:12

Hello! I'm guessing there's a code that I could use to make all profile pictures on my forum turn black and white? Smile

Code:
.POSTDETAILS.POSTER-PROFILE IMG{
  -webkit-filter: grayscale(100%); }

I was hoping something like this could work but it doesn't, is there any other way?

Thanks in advance!
MissUrsh
MissUrsh
Forumember

Female Posts : 130
Reputation : 11
Language : English

http://whentheshadowswalk.slovenianforum.com

Back to top Go down

In progress Re: Black and white profile pictures

Post by skouliki Mon 29 Jul - 0:32

You want a hover black grayscale effect or solid black and white?
skouliki
skouliki
Manager
Manager

Female Posts : 15310
Reputation : 1705
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

In progress Re: Black and white profile pictures

Post by Draxion Mon 29 Jul - 2:57

Hello. If you want to change all profile pictures black and white, you have the right idea but wrong selectors. Use this CSS to turn all avatar images black and white.

Code:
#spark > a > img,
#emptyidcc > table > tbody > tr > td:nth-child(2) > table > tbody > tr:nth-child(2) > td:nth-child(2) > table:nth-child(1) > tbody > tr:nth-child(2) > td > img:nth-child(1) {
    filter: grayscale(100%);
}
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

In progress Re: Black and white profile pictures

Post by MissUrsh Mon 29 Jul - 13:22

skouliki wrote:You want a hover black grayscale effect or solid black and white?

I want solid black and white Very Happy

Draxion wrote:Hello. If you want to change all profile pictures black and white, you have the right idea but wrong selectors. Use this CSS to turn all avatar images black and white.

The code isn't working for me :/
MissUrsh
MissUrsh
Forumember

Female Posts : 130
Reputation : 11
Language : English

http://whentheshadowswalk.slovenianforum.com

Back to top Go down

In progress Re: Black and white profile pictures

Post by Draxion Mon 29 Jul - 16:01

Try the original property.

Code:
#spark > a > img,
#emptyidcc > table > tbody > tr > td:nth-child(2) > table > tbody > tr:nth-child(2) > td:nth-child(2) > table:nth-child(1) > tbody > tr:nth-child(2) > td > img:nth-child(1) {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

In progress Re: Black and white profile pictures

Post by MissUrsh Mon 29 Jul - 22:00

It's still not working. :/
MissUrsh
MissUrsh
Forumember

Female Posts : 130
Reputation : 11
Language : English

http://whentheshadowswalk.slovenianforum.com

Back to top Go down

In progress Re: Black and white profile pictures

Post by Draxion Tue 30 Jul - 7:00

MissUrsh wrote:It's still not working. :/

I'm sorry. Let me try this a different way. Can you PM me a test account I can use?
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

In progress Re: Black and white profile pictures

Post by Guest Tue 30 Jul - 11:14

Have you tried to add important like like this:

Code:

-webkit-filter: grayscale(100%)!important;
  filter: grayscale(100%)!important;

Maybe that will do the job.
avatar
Guest
Guest


Back to top Go down

In progress Re: Black and white profile pictures

Post by Storyteller of Wonderland Wed 7 Aug - 6:47

MissUrsh wrote:Hello! I'm guessing there's a code that I could use to make all profile pictures on my forum turn black and white? Smile

Code:
.POSTDETAILS.POSTER-PROFILE IMG{
  -webkit-filter: grayscale(100%); }

I was hoping something like this could work but it doesn't, is there any other way?

Thanks in advance!

Hey.

You have the following code in CSS:

Code:

#spark {
    height: 300px;
    overflow: hidden;
    position: relative;
    width: 200px;
}

Add two lines to it:

Code:
-webkit-filter: grayscale(1);
filter: grayscale(1);

That is, it will be like this:

Code:
#spark {
    height: 300px;
    overflow: hidden;
    position: relative;
    width: 200px;
-webkit-filter: grayscale(1);
filter: grayscale(1);
}

It's all ...



If you often use !Important - one day this will become a burden, and you will feel that the browser can hardly read the codes of your forum.

Good luck!
Storyteller of Wonderland
Storyteller of Wonderland
Forumember

Female Posts : 108
Reputation : 10
Language : Russian, German, French, English.
Location : Russia

http://milanwake.forum2x2.ru

Back to top Go down

In progress Re: Black and white profile pictures

Post by skouliki Sun 11 Aug - 15:56

hello

If your request is complete, please mark it as solved
skouliki
skouliki
Manager
Manager

Female Posts : 15310
Reputation : 1705
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum