Sometimes you’ll get a javascript error “style.display is null or not an object” and as a result you’re unable to modify the certain random web part’s properties on the edit page. This is because the content of a Content Editor web part (CEWP) on the page has been copied and pasted from another CEWP and it has brought across some CSS script with it that is causing the error.
To fix the problem you need to delete the CEWP in question. If you can’t delete it through the web part’s menu because of the error simply navigate to the page’s web part maintenance page by adding ?contents=1 to the page URL.