Skip to content
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

Hi. Is it possible to make width parameter in percents? #4

Closed
icekem opened this issue Feb 17, 2018 · 5 comments
Closed

Hi. Is it possible to make width parameter in percents? #4

icekem opened this issue Feb 17, 2018 · 5 comments

Comments

@icekem
Copy link

icekem commented Feb 17, 2018

Need to make width in percents (like 50%).

If i try to write in widget - it doesn't works.

Maby you advice any possibility how to do this? Thanks.

Подскажите пожалуйста, возможно ли указывать ширину в процентах? (для iframe youtube это возможно).

Если указывать параметр - не работает.
Может подскажете как это можно сделать?

@lesha724
Copy link
Owner

@icekem , попробуйте указать

'width'=>'50%',

@icekem
Copy link
Author

icekem commented Feb 17, 2018

Работает. Огромное спасибо.

А есть возможность как-то height назначить, чтобы соблюдался маштаб?

@lesha724
Copy link
Owner

Напрямую нет, т.к. width и height это просто атрибуты iframe, но можно с помощью js. Посмотрите здесь

@icekem
Copy link
Author

icekem commented Feb 17, 2018

Спасибо большое! Очень нужный widget

@lesha724
Copy link
Owner

Пожалуйста!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants