Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on Optional frames, borders or shadow around images

Parent

Optional frames, borders or shadow around images

+4
−0

Sometimes, images found in posts blend with the background. That can certainly look better than an image that stands out from the surrounding page, but every now and then, standing out is just what is needed. This can often be the case with screenshots of Codidact itself, where it's confusing when looking at a post with such a screenshot in it, and it blends with the rest. Having a frame, border or shadow around these images, can provide necessary clarity, and helps set content apart, giving a better overview. My latest post turned out to be rather unpleasant to look at with two screenshots of another Codidact question, so I followed a suggestion to put them in citations, to get a border around them. That's better, but it doesn't look pretty. It's not what citations exist for, so having another way to specify either a border or a shadow behind the image, would be nice. We don't necessarily need two options for either a border or shadow; we can decide on one of them.

I'm not sure what the best way to support this is, so I'm leaving suggestions for that up to answers.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Element attributes (1 comment)
Post
+0
−1

Edit: withdrawn. There are issues with this approach, including the possibility of introducing technical inaccuracies (see comments).

Original post (kept to preserve the discussion and let future answers know it's already been considered):

I'd rather build something in than make users figure out whether each image needs special handling. What about if images in posts always get a small border? (I'm not proposing to change the behavior of any other images, like user avatars.) I don't know how the Markdown-to-rendered-HTML path works, but if we could add a border element to that img tag on its way out from Markdown, that seems like it would present a good user experience.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

4 comment threads

Borders around schematics could seriously confuse (4 comments)
Example CSS (1 comment)
Images in posts, only (1 comment)
Excessive and intrusive (1 comment)
Borders around schematics could seriously confuse
Olin Lathrop‭ wrote 2 months ago

My main use of images is for posting schematics on the EE site. Those are black on white line drawings, where the black lines have specific meanings. Enclosing something like that with a black border if there are already lines going off the edge would cause confusion. Are those lines part of the schematic, or just the border?

Borders need to be optional.

Monica Cellio‭ wrote 2 months ago

Thanks for pointing out this issue (I was unaware).

Shadows would be unacceptable, too?

Olin Lathrop‭ wrote 2 months ago

Andreas lost his angel wings‭ Shadows would probably not confuse a diagram, but tend to be larger than borders and can still add visual clutter. Again, shadows and/or a border are OK as long as they are optional. Much of the time there is no confusion, and a clean look is desirable.