title: css property "display" not working properly
body: <p>I am having issues with the CSS property >display>
  On my page I have hidden 4 div elements using display=none property
  now using javascript I want to display each property separately 
  I am able to hide the elements and am able to make them appear on click but it never displays like it should its either all inline and the formatting is wrong
  I have used a lot of values for display eg: inline,block etc but i still can't get it right
  if someone can help me out ill appreciate it
  the code I am using is :</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  document.getElementById("a").style.display="none";
  document.getElementById("b").style.display="none";
  document.getElementById("c").style.display="none";
  document.getElementById("d").style.display="none";
  function myFunctionA() {
  document.getElementById("a").style.display="block";
  document.getElementById("b").style.display="hidden";
  document.getElementById("c").style.display="hidden";
  document.getElementById("d").style.display="hidden";
  }
  function myFunctionB() {
  document.getElementById("b").style.display="initial";
  document.getElementById("a").style.display="hidden";
  document.getElementById("c").style.display="hidden";
  document.getElementById("d").style.display="hidden";
  }
  function myFunctionC() {
  document.getElementById("c").style.display="initial";
  document.getElementById("a").style.display="hidden";
  document.getElementById("b").style.display="hidden";
  document.getElementById("d").style.display="hidden";
  }
  function myFunctionD() {
  document.getElementById("d").style.display="initial";
  document.getElementById("a").style.display="hidden";
  document.getElementById("b").style.display="hidden";
  document.getElementById("c").style.display="hidden";
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>the page on which i see the result is :</p>
  
  <p><a href="http://theinformant.to/food-drink/" rel="nofollow">http://theinformant.to/food-drink/</a></p>
  
  <p>if you click on the names eg cooking, beverages you will see what am talking about</p>