title: How to center a component without knowing its width in Css
body: <p>How to center a component without knowing its width value. I know that you can position a component in the center by writing this in css: </p>
  
  <pre><code>Width: componentWidth; 
  margin: auto;
  </code></pre>
  
  <p>But in my case it's a generic style (given to different kind of buttons with different with value).</p>
  
  <p>Any Help will be appreciated</p>