505 posts
  • Affiliate Level 2
  • Author Level 3
  • Collector Level 2
  • Featured Author
+6 more
CraigSnedeker
says

http://snedekerdesignz.com/

Those two buttons are 100% css. The html is as follows:

<div id=”button1”> <a class=”1” href=”http://snedekerdesignz.webs.com/”</a> </div>

And the CSS :

#button1 a { background:#128BC8 url(image2.png) repeat-x scroll 0 0; border:7px solid black; display:block; float:left; height:128px; margin-left:150px; width:198px; }

Feel free to use this code yourself.

136 posts
  • 7 Years of Membership
  • Affiliate Level 1
  • Author Level 3
  • Collector Level 2
+3 more
Raspo
says

?

What’s the point?

4483 posts ThemeForest Senior Reviewer
  • Affiliate Level 1
  • Author Level 6
  • Collector Level 3
  • Envato Team
+14 more
Ivor
Envato team
says
repeat-x

Is not necessary.-

505 posts
  • Affiliate Level 2
  • Author Level 3
  • Collector Level 2
  • Featured Author
+6 more
CraigSnedeker
says

I know added that incase

The point is you don’t need lots of javascript files to make roll over images. CSS owns

1149 posts
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
  • Collector Level 2
+3 more
fillerspace
says

You also need an a:hover to make it work

101 posts
  • Canada
  • Weekly Top Seller
  • Trendsetter
  • Exclusive Author
+4 more
LoewenWeb
says

To be user friendly either use sprites with background position (to avoid the image loading delay on hover) or preload the rollovers with JavaScript.

971 posts
  • 7 Years of Membership
  • Author Level 5
  • Collector Level 4
  • Exclusive Author
EireStudio
says

You’re using redundant divs

53 posts
  • 7 Years of Membership
  • Affiliate Level 1
  • Author Level 6
  • Collector Level 4
+6 more
templateup
says

Why can’t you just preload with css? loading the images at the top of the page with display none.

162 posts
  • 7 Years of Membership
  • Affiliate Level 2
  • Author Level 7
  • Collector Level 1
+8 more
ponjoh
says
Why can’t you just preload with css? loading the images at the top of the page with display none.

Internet Explorer does not cache images loaded with CSS .

snedekerdesignz: Why the div? Divitis is a nasty disease :p

2468 posts
  • 7 Years of Membership
  • Exclusive Author
  • Author Level 2
  • Collector Level 2
+3 more
digitalimpact
says

CSS Sprites would be much better ;)

by
by
by
by
by
by