0

I'm attempting to make a html5 object within an iframe set to 100% width to no avail. At the moment the width of the inner html5 object overflows the iframes boundaries and doesn't fit correctly so I'm trying to constrain it. I've used code like so:

#quote iframe object {
    width: 100% !important;
}

This doesn't seem to work. Is there any way of targeting an inner html5 element easily?

Thanks!

Jake Gabb
  • 385
  • 1
  • 5
  • 15

2 Answers2

1

You cannot access inside the iframe. Iframe is like new browser window. You have no access from one window to another.

Jure Potocnik
  • 489
  • 7
  • 21
1

While you can't target specific items in the iframe and size them, you can scale the iframe as a whole to the appropriate size. Perhaps that is what you need instead, if your iframe's inner objects are overflowing its boundaries. Check out this quesiton: How can I scale the content of an iframe?.

Community
  • 1
  • 1
daniman
  • 284
  • 1
  • 5