BuddyDev

Search

[Resolved] Image size in Xprofile custom field types

Tagged: 

  • Participant
    Level: Enlightened
    Posts: 57
    Tony on #29731

    Hello –

    I am using the “image” field type on a user profile. Is it possible to control the display size of the image in the profile? I looked at the CSS from the browser side and if I change it many img elements on the page will change.

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #29743

    Hi Tony,
    Thank you for the question.

    you can use the selector ‘.field_type_image img’ to only target the images form this field type.

    Example:-

    
    .field_type_image img{
    
      max-width: 200px;
      max-height: 200px;
    }
    
    

    You can update as you wish. Please let me know if that works for you or not?

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 57
    Tony on #29747

    This worked. Thank you!

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #29752

    You are welcome.

The topic ‘ [Resolved] Image size in Xprofile custom field types’ is closed to new replies.

This topic is: resolved