CSS Sprite Pada Gambar biasa di gunakan untuk membuat menu,item,list,button dan lainnya dengan background sebuah gambar. untuk mengatur link css sprite kita harus selalu mengunakan markup akhir
a:,agar link pada text anchor tetap aktive..
a {
display: block;
background: url(sprite.png) no-repeat;
height: 25px;
width: 150px;
}
a:hover {
background-position: 0 -25px;
}
display: block; gunakan block agar gambar pada text bisa membungkus keseluruhan. atur tinggi dan lebar sesuaikan gambar,agar berfungsi di semua browser termasuk mobile layout.
a:hover {
background-position: 0 -25px;
}
a:hover guna meroll background sprite gambar menjadi berbeda dengan hanya mengatur
background-position:
Untuk generatornya bisa memakai ini: http://csssprites.com/
ReplyDeletePastinya akan lebih mantab ya kak ?
DeleteMantap nih tutor :D
ReplyDeleteBerkunjung kang ke blog ane...
wah masternya blog nih..:)
ReplyDeleteikut belajar disini ya gan..:)
ikut belajar mas
ReplyDeleteMakin nambah aja nih pengetahuan tentang css \o/
ReplyDeleteNice info. Thanks for sharing.
ReplyDeleteMaju terus gan.
nice info keep sharing n sukses
ReplyDeleteObat Jerawat
Download the application to make it easier to learn programming languages, suitable for beginners as a small dictionary
ReplyDeleteFOR ANDROID
HTML
https://vlikoo-apk.blogspot.com/2018/11/html5-easy-v40.html
CSS
https://vlikoo-apk.blogspot.com/2018/11/css-easy-v30.html
JS
https://vlikoo-apk.blogspot.com/2018/11/javascript-easy-v17.html
CSS Playground
https://vlikoo-apk.blogspot.com/2018/11/css-playground-v11.html
PROGRAMING LANGUAGES
https://vlikoo-apk.blogspot.com/2018/11/programming-languages.html
It’s actually a nice and helpful piece of information. I'm happy that you just shared this useful information with us. Pretty educative blog. Many thanks so much for sharing. visit us: maranatha university courses and cut off mark
ReplyDelete