[GH-ISSUE #48] Add a max width for images #5

Closed
opened 2026-02-16 12:42:33 -05:00 by yindo · 2 comments
Owner

Originally created by @thehowl on GitHub (Jan 12, 2018).
Original GitHub issue: https://github.com/go-gitea/theme/issues/48

Currently, images will overflow from the post if they're bigger than it is. The simple fix is to add this to the CSS

img {
  max-width: 100%;
}
Originally created by @thehowl on GitHub (Jan 12, 2018). Original GitHub issue: https://github.com/go-gitea/theme/issues/48 Currently, images will overflow from the post if they're bigger than it is. The simple fix is to add this to the CSS ```css img { max-width: 100%; } ```
yindo closed this issue 2026-02-16 12:42:33 -05:00
Author
Owner

@lunny commented on GitHub (Jan 12, 2018):

Any screenshot for the bug?

@lunny commented on GitHub (Jan 12, 2018): Any screenshot for the bug?
Author
Owner

@thehowl commented on GitHub (Jan 12, 2018):

Without:

image

With the CSS:

image

@thehowl commented on GitHub (Jan 12, 2018): Without: ![image](https://user-images.githubusercontent.com/4681308/34880209-09cdc07c-f7b0-11e7-83a1-9b2690087a6d.png) With the CSS: ![image](https://user-images.githubusercontent.com/4681308/34880200-fe64b7d6-f7af-11e7-8ab2-6e233cded538.png)
yindo changed title from Add a max width for images to [GH-ISSUE #48] Add a max width for images 2026-06-05 16:34:27 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: go-gitea/theme#5