To customize the appearance of your theme, you can modify the CSS file.
Access the CSS file by going to File > Preference
or using the shortcut Ctrl+Comma
. Then, navigate to Themes and click on Open Theme Folder
.
https://i.stack.imgur.com/O4Ss3.png
Once in the theme folder, open the CSS file associated with your theme. In this example, I am using the Github theme.
https://i.stack.imgur.com/8KOAn.png
Search for img {}
within the CSS file. If it is not present, you can create it yourself. Then, add the following properties for display
and align-items
:
img {
display: -webkit-flex;
-webkit-align-items: flex-start;
display: flex;
align-items: flex-start;
}
Before applying the above CSS properties, the alignment may not be as desired:
https://i.stack.imgur.com/OPBR7.png
After applying the CSS code, the alignment should improve:
https://i.stack.imgur.com/kbkkG.png
Note: In some cases, when editing the file and the cursor is between images, temporary center alignment may occur. Moving the cursor away from the images usually resolves this issue.
I hope this information proves helpful!