title: Adjust div styled as pin location according to the div inside it using css
body: <p>I have a question regarding showing a text inside a div styled as a pin location.</p>
  <p>I am new to css and react (this is a css question) and I want to display a value in a div tag which has a pin location style, this value is a number and can be one digit or more.</p>
  <p>To style the pin the used the following:</p>
  <pre><code>export const Mark = styled.div(props=&gt;({
  transform:&quot;rotateX(20deg) rotateY(-45deg),
  borderRadius: &quot;50% 50% 50% 0&quot;,
  padding:&quot;50% 50% 50% 50%&quot;,
  left:&quot;50%&quot;,
  top:&quot;50%&quot;,
  textAlign:&quot;center&quot;,
  position:&quot;absolute&quot;,
  width:&quot;100%&quot;,
  height:&quot;100%&quot;)}
  </code></pre>
  <p>I am using other div for the value since I do not want the content (the number) to be rotated</p>
  <pre><code>&lt;Mark&gt;&lt;div style={{transform:&quot;rotate(45deg)&quot;, left:&quot;50%&quot;, top:&quot;50%&quot;}}100&lt;/div&gt;&lt;/Mark&gt;
  </code></pre>
  <p>What I want is that: if the number has more digit the mark will be larger so all the digits will be inside it, and if one digit the Mark will be smaller. the numbers should be in the center(I believe this is already done by left 50% and top 50%&quot;)</p>
  <p>Is that possible using certain styling?</p>