0

I've a component which is using vw and vh units. On its own, its working fine but now I want to embed this component into another page which contains some other stuff as well so this embedded component should adjust its width and height according to the parent element. How do I do it?

adeel41
  • 3,123
  • 1
  • 29
  • 25
  • without any code showing your issue, hard to tell. ... you could take a look at the flexbox model. ... – G-Cyrillus Sep 15 '16 at 12:29
  • @GCyrillus It is a general question that how can you adjust vh and vw according to their parent container and not to the page. – adeel41 Sep 15 '16 at 12:54
  • I think this is a good question, related questions existed shows the exact usage case. https://stackoverflow.com/questions/16056591/font-scaling-based-on-width-of-container – intijk Feb 18 '18 at 18:49

0 Answers0