[CSS] Imagine sprites [Tutoria]

Status
Not open for further replies.

PHP

Member
Dec 28, 2010
33
1
What is imagine sprite, imagine sprite is something as a hover like, wen you go with youre mouse over an button that it turns dark or give an effect,

Now lets get started.

First of al wil i like to thanks w3schools for this tutorial.


Imagine sprite Hover effect:

Then just copy this code:


PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<style type="text/css">
#navlist{position:relative;}
#navlist li{margin:0;padding:0;list-style:none;position:absolute;top:0;}
#navlist li, #navlist a{height:44px;display:block;}

#home{left:0px;width:46px;}
#home{background:url('img_navsprites_hover.gif') 0 0;}
#home a:hover{background: url('img_navsprites_hover.gif') 0 -45px;}

#prev{left:63px;width:43px;}
#prev{background:url('img_navsprites_hover.gif') -47px 0;}
#prev a:hover{background: url('img_navsprites_hover.gif') -47px -45px;}

#next{left:129px;width:43px;}
#next{background:url('img_navsprites_hover.gif') -91px 0;}
#next a:hover{background: url('img_navsprites_hover.gif') -91px -45px;}
</style>
</head>

<body>
<ul id="navlist">
  <li id="home"><a href="default.asp"></a></li>
  <li id="prev"><a href="css_intro.asp"></a></li>
  <li id="next"><a href="css_syntax.asp"></a></li>
</ul>
</body>
</html>

Then make a file called ''Whateveryouwant'' And put the index file there.

Then Just save this imagine in youre ''whateveryouwant''

img_navsprites_hover.gif



file and this wil be a Sample
1293566911821298221915.jpg



Notice: If this post whas usefull to you then just thanks me.

Feedbacks are always welcome.

And credits to W3schools for the nice tutorial.
 

Kieren

The OGz
Aug 4, 2010
2,957
751
It's a good tutorial possibly you could correct some errors in the tutorial and give us more information if I didn't know how to code and I was following that I would still have no clue.


Thanks Anyway.
 

PHP

Member
Dec 28, 2010
33
1
its easy, just copy the index html save it into a file and save the images
then click on index.html and it shoud work
 

Mastah

the funny thing is \r\n i did
Oct 25, 2010
739
41
that is a nice tutorial 10/10 thanks for the information
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
Thanks for this Dion, Also, Dion why are you thanking your self?
 

Jo$h

Posting Freak
Jul 7, 2010
1,030
79
On Topic: Nice Tutorial, However I think it would be nice if you could explain a little more how it works for the noobies!
Thanks for this Dion, Also, Dion why are you thanking your self?
OFT: I wonder How Many accounts he has.
Dion
Dude
Notice
and now PHP?
 

PHP

Member
Dec 28, 2010
33
1
LMFAO Alot but il go on this one and also thanks for the feedback il do my best
 
Status
Not open for further replies.

Users who are viewing this thread

Top