Nitro-Game 0 Odesláno: 24. Prosinec, 2014 Share Odesláno: 24. Prosinec, 2014 Zdravím, chtěl bych se zeptat jak dát do pozadí stránky nějaký obrázek . Děkuji za rady chtěl bych to pozadí jako je tady http://play-sector.hys.cz/news.php jen nevím jak tam nějaký do své stránky dát . Link to comment Share on other sites More sharing options...
0 Robin 67 Odesláno: 24. Prosinec, 2014 Share Odesláno: 24. Prosinec, 2014 Cez CSS: body { background-image: url(images/bg.jpg) ; background-attachment: fixed; background-position: top center; background-repeat: no-repeat; } Alebo cez HTML obyčajne <body background="images/bg.jpg"> Link to comment Share on other sites More sharing options...
0 Nitro-Game 0 Odesláno: 24. Prosinec, 2014 Author Share Odesláno: 24. Prosinec, 2014 A proč mi to udělalo takto ? http://www.nitro-game.hys.cz/news.php Link to comment Share on other sites More sharing options...
0 Robin 67 Odesláno: 24. Prosinec, 2014 Share Odesláno: 24. Prosinec, 2014 Pretoze si to tak chcel Link to comment Share on other sites More sharing options...
0 Nitro-Game 0 Odesláno: 24. Prosinec, 2014 Author Share Odesláno: 24. Prosinec, 2014 Jak zjistím jaký rozměr pozadí mám mít na stránku ? Link to comment Share on other sites More sharing options...
0 Ar3us 0 Odesláno: 25. Prosinec, 2014 Share Odesláno: 25. Prosinec, 2014 dej tam: width="100%" a height="100%" Kdyžtak si zjisti plnou velikost obrázku a zmenší ji třeba ve PhotoShopu. Pokud chces, já ti to udělám. Cez CSS: body { background-image: url(images/bg.jpg) ; background-attachment: fixed; background-position: top center; background-repeat: no-repeat; } musíš pak na začátek HTML kódu dát kod: <link rel="stylesheet" href="{odkaz CSS kodu}/styly.css"> Aby ti to fungovalo, podle horního tutu od kolegy Link to comment Share on other sites More sharing options...
Dotaz
Nitro-Game 0
Zdravím, chtěl bych se zeptat jak dát do pozadí stránky nějaký obrázek .
Děkuji za rady chtěl bych to pozadí jako je tady http://play-sector.hys.cz/news.php jen nevím jak tam nějaký do své stránky dát .
Link to comment
Share on other sites
5 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