Huzy 11 Odesláno: 2. Srpen, 2016 Share Odesláno: 2. Srpen, 2016 Ahooj, potřeboval bych poradit, jak udělat responzivní obrázek, který má být přes monitor 50% široký a 100% vysoký. #left-content {width: 50%; height: 100%; margin: 0; padding: 0; border: 0; float: left; position: fixed; background-repeat: no-repeat; background-image: url(images/bg.png); background-position: center;} Napadlo mě udělat height: auto; ale to bohužel nefunguje - obrázek se nezobrazí. Link to comment Share on other sites More sharing options...
0 Fakerko_ 190 Odesláno: 2. Srpen, 2016 Share Odesláno: 2. Srpen, 2016 (upraveno) Však to co jsi zde napsal, mi funguje. //EDIT #left-content {width: 50%; height: 100%; margin: 0; padding: 0; border: 0; float: left; position: fixed; background-size: cover; background-repeat: no-repeat; background-image: url(images/bg.jpg); Edited 2. Srpen, 2016 by Petr Hnátek 1 Link to comment Share on other sites More sharing options...
0 Huzy 11 Odesláno: 2. Srpen, 2016 Author Share Odesláno: 2. Srpen, 2016 Děkuju mooc, chlape! Link to comment Share on other sites More sharing options...
Dotaz
Huzy 11
Ahooj, potřeboval bych poradit, jak udělat responzivní obrázek, který má být přes monitor 50% široký a 100% vysoký.
Napadlo mě udělat height: auto; ale to bohužel nefunguje - obrázek se nezobrazí.
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now