title: How to check if css value is supported by the browser?
body: <p>Im not very skilled in javascript so please be bear with me. Safari 6 and below and older android mobile browsers and maybe more do not support the css value VH. My DIV#id or class is not the height of the viewport. Below is a link to a page i found some useful information, but im really not sure how to use it with a css value:</p>
  
  <p><a href="http://lea.verou.me/2009/02/check-if-a-css-property-is-supported/" rel="noreferrer">Check whether a css value is supported</a></p>
  
  <p>Here is the code given as a shortcut for you:</p>
  
  <pre><code>if('opacity' in document.body.style) {  
     // do stuff
  }
  
  function isPropertySupported(property{
     return property in document.body.style;
   }
  </code></pre>
  
  <p>In the comments of the link i attached above someone does ask how to check if a css VALUE is supported and the answer is, "You set it, then read the value back and check if the browser retained it." Now im sure that would be useful information if i knew more javascript which i have just started to learn.</p>
  
  <p>This is what i have in mind but im really not sure how to go around doing this.
  Check if div#id or div.class has vh css value.
  Check whether the css value is supported by the browser.
  If its supported then keep loading. If not supported then change id or class. </p>
  
  <p>So to sum up my question:</p>
  
  <p>How do i check if a css value is supported by the browser using javascript or jquery?</p>
  
  <p>Guidance to the answer is really appreciated.
  Thanks for your help.</p>