Skip to content
Snippets Groups Projects
Verified Commit 82f559c1 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add support for marking image alignment in alt

parent 438f3d86
No related branches found
No related tags found
No related merge requests found
Pipeline #41300 failed
......@@ -206,3 +206,24 @@ time.icon span {
img, svg {
max-width: 100%;
}
/* Allow image alignment with arrow i nalt attribute.
* Thanks to https://stackoverflow.com/a/39614958/3035850
*/
img[alt$=">"] {
float: right;
max-height: 20em;
margin: 0 0 2em 2em;
}
img[alt$="<"] {
float: left;
max-height: 20em;
margin: 0 2em 2em 0;
}
img[alt$="><"] {
display: block;
max-width: 100%;
height: auto;
margin: auto;
float: none!important;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment