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 ...
6 komentar on "Css background tetap"
script nya dtaruh mna mbak?
punyaku backgroundnya kan ini
di dalam template kamu dan berada pada taq body,
jika di souce kode template kamu :
body {
font: normal bold 13px Georgia, Utopia, 'Palatino Linotype', Palatino, serif;
color: #010800;
background: #3f9d0e xxx;
}
ganti pada bagian background
body {
font: normal bold 13px Georgia, Utopia, 'Palatino Linotype', Palatino, serif;
color: #010800;
background-image:url("love.png");
background-repeat:no-repeat;
background-attachment:fixed;
}
good luck
trima kasih ilmunya bermanfaat
http://kumpulankonsultasi.blogspot.com
Makasih Mbak :)
taruhnya di mana tuh
Posting Komentar