Add margin to aligned images

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Problem to solve

In Markdown, if I use a <img> tag with the attribute align="right, the image gets aligned right, but as you can see in the image below, the text is toooo near to the image. I would like to have more margin here. Every image provides 8px down in margin. So what about adding some more CSS for align left and right.

img[align="right"] {
  margin-left: 8px; // or even better; 12px
}
img[align="left"] {
  margin-right: 8px; // or even better; 12px
}

Bildschirmfoto_2019-11-13_um_09.43.51

Intended users

Unknown or everyone(?)

Further details

Would increase readability.

Proposal

Add this extra CSS

img[align="right"] {
  margin-left: 8px; // or even better; 12px
}
img[align="left"] {
  margin-right: 8px; // or even better; 12px
}

Permissions and Security

Documentation

Testing

What does success look like, and how can we measure that?

What is the type of buyer?

Links / references

Edited Aug 25, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading