ElkArte Community

Project Support => Support => Topic started by: Jorin on February 09, 2018, 04:09:10 am

Title: images with border
Post by: Jorin on February 09, 2018, 04:09:10 am
Is there a way to show a 1px border around images attached in posts (with ILA addon)?
Title: Re: images with border
Post by: ahrasis on February 09, 2018, 10:28:22 am
I think that should be easy though I haven't tried.
Title: Re: images with border
Post by: Ruth on February 09, 2018, 01:43:22 pm
Something like this is working in a custom.css:

Code: [Select]
.bbc_img {
     border: 5px solid green;
     border-radius: 8px;
}

But than every inserted image in the post will get a border, also for example a little smiley from another server. Looks funny. ;)

Title: Re: images with border
Post by: radu81 on February 09, 2018, 05:26:18 pm
I'm not sure it's the best solution, I wanted to change the max-width of images inserted with attachimg code from ILA for Elkarte 1.0.x  and I did it directly on ILA.subs.php file. You can find an example here https://www.elkarte.net/community/index.php?topic=1450.msg19660#msg19660
In the same way you can add a border to inline images inserted with attachimg or attach bbcode
Title: Re: images with border
Post by: ahrasis on February 10, 2018, 12:22:04 am
And that can even be extended to a more "enhanced" ILA css style setting, if its author wants.