1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Limit offsite linke images width

Discussion in 'XenForo Questions and Support' started by AndreaMarucci, Apr 8, 2011.

  1. AndreaMarucci

    AndreaMarucci Well-Known Member

    Since some users link big images in my board not using the attachment system, it's possible to limit the width of such images so they stay in a fixed width (soppose 640 pixels). If a user click on the image he can see the image in big size. I've limited the max width of the attached images to 640 pixel and I would like to do the same for offsite images...

  2. Brogan

    Brogan XenForo Moderator Staff Member

    Add this to EXTRA.css
    .bbCodeImage {
    max-width: 640px;

    If you want to prevent larger images being displayed in their full size when clicked, add this to EXTRA.css aswell
    .bbCodeImageFullSize {
    max-width: 640px;
    AndreaMarucci and Jake Bunce like this.
  3. AndreaMarucci

    AndreaMarucci Well-Known Member

    You're my hero...
  4. Tilkißey

    Tilkißey Well-Known Member

    not just your hero
    Paul is XenForo's hero =)
  5. AndreaMarucci

    AndreaMarucci Well-Known Member

    I agree absolutely :)

Share This Page