- Stanislav Hnátek
- Czech Support Forum
- Friday, 14 December 2018
Zdravím,
mám v hlavičce (abox3) jako pozadí externí obrázek. U toho pak nastavenou funkci parallax. Potřeboval bych ale toto pozadí nastavit na celou úvodní obrazovku, tzn. přizpůsobit vždy podle velikosti návštěvníkova monitoru...
Příklad: https://restaurace.arrows.cz/
Nalezl jsem jeden způsob řešení, ale nedaří se mi jej implementovat...
Editor: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_parallax_percent
Děkuji za radu.
mám v hlavičce (abox3) jako pozadí externí obrázek. U toho pak nastavenou funkci parallax. Potřeboval bych ale toto pozadí nastavit na celou úvodní obrazovku, tzn. přizpůsobit vždy podle velikosti návštěvníkova monitoru...
Příklad: https://restaurace.arrows.cz/
Nalezl jsem jeden způsob řešení, ale nedaří se mi jej implementovat...
The example above used pixels to set the height of the image. If you want to use percent, for example 100%, to make the image fit the whole screen, set the height of the parallax container to 100%. Note: You must also apply height: 100% to both <html> and <body>:
Editor: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_parallax_percent
Děkuji za radu.
There are replies in this post but you are not allowed to view the replies from this post.