Stretch and scale CSS backgroundHow to stretch a background image to cover the entire HTML element? background image does not stretch full page width
I have a background image of a webpage that should be displayed completely at 100% of the window size. If the window is resized, the image must be resized with it in order to stay at 100%.
CSS does not allow you to set the size of the background image, just the way it is repeated. (but I want him to stretch out)
I assume jQuery is the safest and fastest way to implement this in order to overcome browser incompatibilities. Or can this be done quickly using regular javascript?
This link may interest you:
How do you stretch the background image on a web page
Source: https://habr.com/ru/post/1708508/More articles:ASP.NET Web Application - 5,000 lines of code on 1 page - acceptable? - c #Patterns and technologies for a system capable of processing 40,000 messages per second - design-patternshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1708505/is-it-possible-to-have-powerpoint-2007-export-slides-to-a-pdf-including-animations&usg=ALkJrhjdv9AnfdOzGbLxtsviVmjxc52qmgRuby FTP extremely slow under Windows XP - windowsСамый быстрый способ начать разработку приложений OS X? - iphonehttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1708509/silverlight-3-minimize-to-tray-drag-and-drop-from-desktop&usg=ALkJrhjevDTrhQLpEZ0CUdIovbcDAaFv0whttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1708510/powerpoint-automation-from-ms-accessqueries-to-chart&usg=ALkJrhg0X0jhczadKRU0ssMobg_UrtVSDgJavascript "classes" (without frameworks) - javascriptCreating Powerpoint with Charts from Access - vbagraphical viewer / drawer for C #? - c #All Articles