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.
The forum of the forums
4 posters

    Black and white profile pictures

    MissUrsh
    MissUrsh
    Forumember


    Female Posts : 130
    Reputation : 11
    Language : English

    In progress Black and white profile pictures

    Post by MissUrsh July 28th 2019, 11:12 pm

    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!
    skouliki
    skouliki
    Manager
    Manager


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

    In progress Re: Black and white profile pictures

    Post by skouliki July 28th 2019, 11:32 pm

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

    Draxion
    Draxion
    Helper
    Helper


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

    In progress Re: Black and white profile pictures

    Post by Draxion July 29th 2019, 1:57 am

    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%);
    }
    MissUrsh
    MissUrsh
    Forumember


    Female Posts : 130
    Reputation : 11
    Language : English

    In progress Re: Black and white profile pictures

    Post by MissUrsh July 29th 2019, 12:22 pm

    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 :/
    Draxion
    Draxion
    Helper
    Helper


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

    In progress Re: Black and white profile pictures

    Post by Draxion July 29th 2019, 3:01 pm

    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%);
    }
    MissUrsh
    MissUrsh
    Forumember


    Female Posts : 130
    Reputation : 11
    Language : English

    In progress Re: Black and white profile pictures

    Post by MissUrsh July 29th 2019, 9:00 pm

    It's still not working. :/
    Draxion
    Draxion
    Helper
    Helper


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

    In progress Re: Black and white profile pictures

    Post by Draxion July 30th 2019, 6:00 am

    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?
    avatar
    Guest
    Guest


    In progress Re: Black and white profile pictures

    Post by Guest July 30th 2019, 10:14 am

    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.
    Storyteller of Wonderland
    Storyteller of Wonderland
    Forumember


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

    In progress Re: Black and white profile pictures

    Post by Storyteller of Wonderland August 7th 2019, 5:47 am

    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!
    skouliki
    skouliki
    Manager
    Manager


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

    In progress Re: Black and white profile pictures

    Post by skouliki August 11th 2019, 2:56 pm

    hello

    If your request is complete, please mark it as solved


      Current date/time is September 23rd 2024, 6:20 pm