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
3 posters

    Login widget avatar size

    ifelthope1126
    ifelthope1126
    Forumember


    Female Posts : 107
    Reputation : 9
    Language : Lithuanian, Russian, English

    Solved Login widget avatar size

    Post by ifelthope1126 Wed 1 May - 8:42

    Technical Details


    Forum version : #phpBB2
    Position : Founder
    Concerned browser(s) : Mozilla Firefox, Google Chrome, Safari
    Screenshot of problem : https://i.servimg.com/u/f82/16/02/93/28/captur11.png
    Who the problem concerns : All members
    When the problem appeared : A few months ago.
    Forum link : http://testforum.lithuanianforum.net/

    Description of problem

    Hi all!

    Long time ago I've installed a login widget on my forum. On this helpforum I found a CSS code which made avatars smaller than the actual size in order for an image not to stretch the widget. Code provided below worked all the time.

    Code:
    #gallery_container img[alt="avatar"] {height: 225px; !important;
    width: 150px;
      }

    Recently (about half an year or so ago) we did some coding to change username font size and to make navbar fixed on top of the forum. Sadly I can't specify if the problem occured right after we did the coding or later. But the fact is, as you can see from the screenshot I added, the code I used to resize avatar doesn't work anymore. It stretches the widget and makes it look bad aside the other widgets that are not stretched. To increase width of all the widgets is not an option for me.

    Thank you for all the possible solutions.
    skouliki
    skouliki
    Manager
    Manager


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

    Solved Re: Login widget avatar size

    Post by skouliki Wed 1 May - 15:04

    hello

    we can not inspect the element cause guests cant see the login widget

    ifelthope1126
    ifelthope1126
    Forumember


    Female Posts : 107
    Reputation : 9
    Language : Lithuanian, Russian, English

    Solved Re: Login widget avatar size

    Post by ifelthope1126 Wed 1 May - 15:22

    Hi,

    here it is, I can see it as a guest. It shows avatar only when I'm logged in.
    Login widget avatar size Captur11

    I can also provide you my login details, if you need it.
    skouliki
    skouliki
    Manager
    Manager


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

    Solved Re: Login widget avatar size

    Post by skouliki Wed 1 May - 16:23

    yes i can see it but we dont see the issue, the widget's width seems ok like this

    yes please send me a test account via pm

    ifelthope1126
    ifelthope1126
    Forumember


    Female Posts : 107
    Reputation : 9
    Language : Lithuanian, Russian, English

    Solved Re: Login widget avatar size

    Post by ifelthope1126 Wed 1 May - 17:34

    Okay, PM sent, thank you
    skouliki
    skouliki
    Manager
    Manager


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

    Solved Re: Login widget avatar size

    Post by skouliki Wed 1 May - 18:16

    received thank you

    skouliki
    skouliki
    Manager
    Manager


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

    Solved Re: Login widget avatar size

    Post by skouliki Wed 1 May - 18:27

    try
    Code:

    table#gallery_container.forumline {
    height: 225px; !important;
    width: 150px;
      }

    ifelthope1126
    ifelthope1126
    Forumember


    Female Posts : 107
    Reputation : 9
    Language : Lithuanian, Russian, English

    Solved Re: Login widget avatar size

    Post by ifelthope1126 Wed 1 May - 18:30

    Sorry, that didn't worked Sad
    Draxion
    Draxion
    Helper
    Helper


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

    Solved Re: Login widget avatar size

    Post by Draxion Wed 1 May - 18:36

    If I can get a login, I can try to help. But allow @skouliki to assist first. Smile
    skouliki
    skouliki
    Manager
    Manager


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

    Solved Re: Login widget avatar size

    Post by skouliki Wed 1 May - 18:37

    sent the info to draxion he knows more than me

    ifelthope1126
    ifelthope1126
    Forumember


    Female Posts : 107
    Reputation : 9
    Language : Lithuanian, Russian, English

    Solved Re: Login widget avatar size

    Post by ifelthope1126 Wed 1 May - 18:41

    Thank you for your concern. Thank you both cheers
    Draxion
    Draxion
    Helper
    Helper


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

    Solved Re: Login widget avatar size

    Post by Draxion Wed 1 May - 18:52

    If you want to specifically target that one image in the widget, use this css rule.
    Code:
    #gallery_container > tbody > tr:nth-child(2) > td > table > tbody > tr > td > div:nth-child(1) > img {
      width: 150px !important;
      height: 225px !important;
    }
    ifelthope1126
    ifelthope1126
    Forumember


    Female Posts : 107
    Reputation : 9
    Language : Lithuanian, Russian, English

    Solved Re: Login widget avatar size

    Post by ifelthope1126 Wed 1 May - 19:00

    @Draxion brilliant as always. Thank you very much, it works. Solved!
    Draxion
    Draxion
    Helper
    Helper


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

    Solved Re: Login widget avatar size

    Post by Draxion Wed 1 May - 19:01

    You're very welcome!

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules

      Current date/time is Sun 22 Sep - 22:28