Last active
November 20, 2020 15:23
-
-
Save Andrii-Yukhymenko/c69e7013b1668e2ad75769060aa62f99 to your computer and use it in GitHub Desktop.
Стили для WP чтобы картинки в старом редакторе WP отображались по центру адекватно
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Добавлять эти стили нужно в Внешний вид -> Настроить -> Дополнительные стили | |
img.size-auto, | |
img.size-full, | |
img.size-large, | |
img.size-medium, | |
.attachment img, | |
.widget-container img { | |
max-width: 100%; | |
height: auto; | |
} | |
.aligncenter, | |
img.aligncenter { | |
clear: both; | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
max-width: 100%; | |
height: auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment