Support Attachment Images

duppy

XF-Fan
Loyal Member
I know I always have a million questions, so I apologize.

I am trying to find out how to get my attached images to display with spacing. What I mean is this. If I attach 5 images in my post as "Thumbnails", there is no spacing between them. Also, if I add images from an image hosting website, there is a dash next to each image, and you can click on it because it is part of the URL. I've attached an image to show what I mean.

Thanks in advance,

Duppy

Untitled.jpg
 
Solution
@XenForo - I finally fixed it. I've been at this since 7am this morning. :) I should have highlighted and inspected the element (image) to see the class it was using. Although it didn't tell me exactly what the class was, I just had to play around with it, and eventually I got the right element to use.

Anyway, the below class & elements I added to the extra.less file.

Rich (BB code):
a.link, link--external {
    text-decoration: none;
    margin: -2px;
    vertical-align: top;
}

The "-2margin" is required, at least on ALL the XenFocus themes if you're using images posted via an external link. This makes it equal to locally stored images within the same post, which I imagine most won't be doing.

Also, earlier on I...

duppy

XF-Fan
Loyal Member
Sorry, I am confused. I don't have the issue with locally stored images as far as the "-" is concerned, if that's what you're referring to. I am only having the issue with images stored on external sites. As for the margin issues, I am using the 12px as you recommended.

You see how you don't have the issue here on this site, even if you switch to the dark theme? Well, on my end I see it with the dark theme. I don't know what code I am missing, or need to add to get rid of it.

 

duppy

XF-Fan
Loyal Member
Like I said, your problem is with your style
I understand. Which style? If I use the default style, I am not seeing it because it is a white BG. If I switch between Elegant Dark, Illumate Dark, Villain, Innovative Dark, Exclusive Dark etc...I still have the issue. These are styles I have not "edited". These are all styles I installed and are original. Also, even in the Default Xenforo style, it is still preset. It is only being hidden by the white bg as previously mentioned.

Again, I just installed a brand new local site with XF, and it still does it with zero modifications on the site.
 

duppy

XF-Fan
Loyal Member
I've done exactly that in every theme that's dark, and it makes no difference. It has no visual effect on the default theme because it is white, and the links are white. The only dark theme that's working well is the XenDark Theme, even with the underline checkbox ticked off.

Untitled.jpg
 
  • Tags
    attachment images support attachment images
  • Back
    Top Bottom