505 posts
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
+4 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
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
Raspo
says

?

What’s the point?

4437 posts ThemeForest Reviewer
  • Has referred 1+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Member of the Envato Team
+12 more
Ivor
Envato team
says
repeat-x

Is not necessary.-

505 posts
  • Has referred 10+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
+4 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

1148 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+3 more
fillerspace
says

You also need an a:hover to make it work

101 posts
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Located in Canada
+2 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.

967 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $10,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Sells items exclusively on Envato Market
EireStudio
says

You’re using redundant divs

53 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 100+ items on Envato Market
+4 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
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 1+ items on Envato Market
+6 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
  • Has been part of the Envato Community for over 5 years
  • Has sold $100+ on Envato Market
  • Has referred 100+ members
  • Has been a beta tester for an Envato feature
+3 more
digitalimpact
says

CSS Sprites would be much better ;)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by