This inline style is atrocious
-
<div class="post-content"> <style> .correct, .incorrect { background-image:"" !important; padding:30px 30px 30px 0px !important; } </style> <style> .correct { background:left no-repeat url() !important; } .incorrect { background:left no-repeat url() !important; } </style>
This is just horrid, guys.
First of all, if you are dropping the background image, drop the padding for it too.
Secondly, if you can’t think how to avoid cutting it inline (hint: multiple classes), at least combine them into one!
Thirdly, look into background-size: contain.
Lastly, for the love of code, please do not use !important.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘This inline style is atrocious’ is closed to new replies.