Artikel ini dikhususkan bagi cukup pucuk , yang bertanya "
<html>
<head>
<style type="text/css">
body
{
background-image:url("love.png");
background-repeat:no-repeat;
background-attachment:fixed;
}
</style>
</head>
<body>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
</body>
</html>
maksud kode di atas:
background-image:url("love.png") --> letak gambar dan nama gambar
background-repeat:no-repeat--> Jika gambar background tidak ingin di ulangi
background-attachment:fixed; --> Kode agar gambar tersebut tetap ditempat ketika scrool ke atas maupun kebawah
Download kode html di sini : http://www.4shared.com/file/lNRKONqV/bakgroundTetap.html
Gampang khan,,jika ada kendala silahkan koment aja ...
emm tau ga carax biar entrix aja yg bisa naik turun tapi bagroundx ttap" masalah ini bisa dipecahkan dengan mengunakan kode css, n cukup gampang koq, check it out :
<html>
<head>
<style type="text/css">
body
{
background-image:url("love.png");
background-repeat:no-repeat;
background-attachment:fixed;
}
</style>
</head>
<body>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
<p>The background-image is fixed. Try to scroll down the page.</p>
</body>
</html>
maksud kode di atas:
background-image:url("love.png") --> letak gambar dan nama gambar
background-repeat:no-repeat--> Jika gambar background tidak ingin di ulangi
background-attachment:fixed; --> Kode agar gambar tersebut tetap ditempat ketika scrool ke atas maupun kebawah
Download kode html di sini : http://www.4shared.com/file/lNRKONqV/bakgroundTetap.html
Gampang khan,,jika ada kendala silahkan koment aja ...
Tidak ada komentar:
Posting Komentar