diff options
| author | Bobby <[email protected]> | 2023-05-01 05:18:04 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-05-01 05:18:04 -0400 |
| commit | 1102adee47b232ab8ed2e8950bd8b4c3320ae681 (patch) | |
| tree | 402e9552f41342c4b05d31db68ef7786e5ffa44c | |
| parent | 36b81b364cc15b1c0b0bff9996147d574eebd4a0 (diff) | |
| download | thatcomputerscientist-1102adee47b232ab8ed2e8950bd8b4c3320ae681.tar.xz thatcomputerscientist-1102adee47b232ab8ed2e8950bd8b4c3320ae681.zip | |
Added bottom padding to article images
| -rw-r--r-- | blog/views.py | 2 | ||||
| -rw-r--r-- | static/css/styles.css | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/blog/views.py b/blog/views.py index 42b209c8..8439417f 100644 --- a/blog/views.py +++ b/blog/views.py @@ -111,7 +111,7 @@ def post(request, slug): images = soup.find_all('img') for i in range(len(images)): if i % 2 != 0: - images[i]['style'] = 'float: right; padding: 0px 0px 13px 13px;' + images[i]['style'] = 'float: right; padding: 13px 0px 13px 13px;' # remove all paragraphs which are: "<p class="ql-align-justify"><br></p>" for p in soup.find_all('p', class_='ql-align-justify'): diff --git a/static/css/styles.css b/static/css/styles.css index d763029e..e7f49ed5 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -343,7 +343,7 @@ blockquote { #article-body img, #editor-container img { height: 300px; float: left; - padding: 0px 13px 13px 0px; + padding: 13px 13px 13px 0px; } #article-body h2, #article-body h1, #editor-container h2, #editor-container h1 { |
