Forum Moderators: not2easy
External CSS > Embedded style > Inline style > Element
The declaration that is the closest to the element will override declarations that are higher up in the cascade.
.makeVisible {visibility:visible;}
.makeHidden {visibility:hidden;}
var someElement = document.getElementbyId('someImage');'
if (/safari/i.test(navigator.userAgent)) {
// is safari
someElement.style.visibility = "hidden";
} // other than safari
someElement.className = "makeHidden";
<img id="someImage" class="makeVisible" alt="" width="100" height="100>"