Skip to content

[BUG] Cannot apply style (css) to iframe #836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hnvn opened this issue Sep 10, 2021 · 2 comments · Fixed by #906
Closed

[BUG] Cannot apply style (css) to iframe #836

hnvn opened this issue Sep 10, 2021 · 2 comments · Fixed by #906
Labels
bug Something isn't working

Comments

@hnvn
Copy link

hnvn commented Sep 10, 2021

I try to apply style to iframe (padding) but it doesn't work

@hnvn hnvn added the bug Something isn't working label Sep 10, 2021
@erickok
Copy link
Contributor

erickok commented Sep 10, 2021

What have you tried? Did you use styling or a custom render? What are you trying to achieve? Is the padding part of your HTML or do you want to apply the style overall?

@hnvn
Copy link
Author

hnvn commented Sep 11, 2021

I use this codes to setup overall style:

Html(
   style: {
      ....
      'iframe': Style(
        display: Display.BLOCK,
        padding: const EdgeInsets.symmetric(horizontal: 16.0),
      ),
      ....
   }
)

But there's no padding is applied

tneotia added a commit to tneotia/flutter_html that referenced this issue Nov 29, 2021
erickok added a commit that referenced this issue Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants