Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

394
Views
Card Media from MUI not resizing correctly?

Hi there I'm trying to set up an IFrame using CardMedia from MUI but for some reason the width of the card media doesn't seem to be working properly is just ignoring what ever I set it up to.

So I have the following:

<Box mb={3} sx={{display: 'flex', justifyContent: 'center',  mr: 2,  color: "white"}}>
   <CardMedia
    component = "iframe"
    src="https://trovo.live/embed/player?streamername=SomeStreamerName&autoplay=1"
    height="800>"
    width="1020"
    frameborder="2"
    allowfullscreen>
   </CardMedia>
                            
   <CardMedia
    component = "iframe"
    src="https://trovo.live/chat/SomeStreamerName"
    height="800"
    width="300">
  </CardMedia>
</Box>

But it comes out like this:

enter image description here

However if I just use regular iFrame it works perfectly fine so I just wanted to know what I was doing wrong with CardMedia from MUI and how to fix it.

<Box mb={3} sx={{display: 'flex', justifyContent: 'center',  mr: 2,  color: "white"}}>
 <iframe
  src="https://trovo.live/embed/player?streamername=SomeStreamer&autoplay=1"
  height="800>"
  width="1020"
  frameborder="2"
  allowfullscreen>
</iframe>
                        
 <iframe
  src="https://trovo.live/chat/SomeStreamer"
  height="800"
  width="300">
</iframe>
</Box>

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!