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
+1
−0

Images should not be forced to have borders. If you are posting a diagram, for example, then it is already visually different from the rest of the post and the border may be confused as part of the diagram or add visual clutter. A border is usually unnecessary and would detract from photographs.

On the other hand, there are cases where visually setting off the image from the post is useful, as you show in your questions. I'm no HTML expert so I don't know how possible this is. A tag that works like <blockquote> but with a simpler and thinner border would solve the problem. It might be called <box> or something (again, no HTML expert here).

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

1 comment thread

Very easy to implement (1 comment)
Very easy to implement

It’s fully possible by simply applying a class to the <img> element. The class is styled in CSS. The rendering-side of the implementation is very easy. As for name, it could be called image-frame. The hard part is deciding how this is specified in the post body.