• <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)
  • Plugin Author Alex Furr

    (@alexfurr)

    Hi – thanks for the feedback I agree with 100%. It was written about 4 years ago and hasn’t been changed. We’ve been looking at a complete overhaul (and have been for a while) but have had little time to get it done with out actual proper jobs ??

    However, the simple removal of the padding is a simple matter – thanks for pointing that out, and thanks again for the input. Always appreciated.

    Alex

    Thread Starter Andrei Zhitkov

    (@abtop)

    That’s when you put it up on the Github. ??
    Thanks for the PHP7 update, BTW.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘This inline style is atrocious’ is closed to new replies.