Good day to all, I have such a question, I make a rubber version of the site. There are 2 third-party widgets, exchange rates and weather, the author offers widgets with a specific width and height for px, but since I make a rubber site, I have a question, how can I adapt them for rubber layout so that they are also positioned as a percentage? I tried to add a div with percentages, but I don’t plow on widgets .. Any ideas?

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants aleksandr barakin , Bald , tutankhamun , Kirill Stoianov , cheops Sep 30, 16 at 17:23 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    Try deleting from width="" or style="width" what they use there .. And set via CSS .widget {width: 100%;} . I was able to make VK comments rubber.

    • Late noticed .. Height change? .widget {height: 5vh;} via JS, or via CSS .widget {height: 5vh;} - vh is the height of the browser as a type .. Not sure if it works in all browsers. - CbIPoK2513
    • yes, at first the width would be at least changed, and with the height we go further - hovdev
    • Unfortunately, in the code there is only a link to the javascript file inside the author’s site itself, so I can’t do anything with the width not with the height ... - hovdev
    • Give a link to the site, please. - CbIPoK2513
    • pogoda.com/widget/... from there I take the widget - hovdev