Conditional CSS for Opera
Posted: Sun Aug 21, 2011 1:05 pm
I know there is the <!--[if IE 7]> for IE, but what is the once for Opera if there is one?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
if (window.opera) { document.getElementById('foo').style.height = '100px'; }
Not quite, even if you have correct CSS not all browsers (not yet anyway) display the style rules exactly the same. Hence conditional options.clint_psoriasis wrote:If you properly built your CSS its run properly in all browser.