This link has been bookmarked by 84 people . It was first bookmarked on 09 Jun 2007, by adam ghost.
-
23 Nov 12
-
06 Jun 08
-
29 Feb 08
Chris NewtonThe following technique demonstrates a cross-browser technique for button elements with sliding doors.
-
22 Feb 08
-
16 Feb 08
-
25 Jan 08
-
24 Jan 08
-
16 Jan 08
-
08 Jan 08
-
14 Dec 07
-
11 Dec 07
-
21 Nov 07
-
16 Nov 07
-
25 Oct 07
-
25 Sep 07
-
08 Sep 07
-
04 Sep 07
-
03 Sep 07
-
30 Aug 07
-
23 Aug 07
-
08 Aug 07
-
06 Aug 07
-
03 Aug 07
-
01 Aug 07
-
30 Jul 07
mmankin<button value="submit" class="submitBtn"><span>Submit</span></button>
-
25 Jul 07
-
20 Jul 07
-
11 Jul 07
-
09 Jul 07
-
02 Jul 07
-
20 Jun 07
-
19 Jun 07
-
18 Jun 07
-
17 Jun 07
-
Example:
Markup:
<button value="submit" class="submitBtn"><span>Submit</span></button>CSS:
button { border:0; cursor:pointer; font-weight:bold; padding:0 20px 0 0; text-align:center; } button span { position:relative; display:block; white-space:nowrap; padding:0 0 0 20px; } /*blue buttons*/ button.submitBtn { background:url(images/btn_blue_right.gif) right no-repeat; font-size:1.3em; } button.submitBtn span { height:50px; line-height:50px; background:url(images/btn_blue_left.gif) left no-repeat; color:#fff; } button.submitBtn:hover { background:url(images/btn_blue_right_hover.gif) right no-repeat; } button.submitBtn:hover span { background:url(images/btn_blue_left_hover.gif) left no-repeat; }CSS for IE 6 and 7 (conditionalize as needed):
button { width:auto; overflow:visible; } button span { margin-top:1px; }
-
-
14 Jun 07
-
13 Jun 07
-
11 Jun 07
-
09 Jun 07
-
04 Jun 07
-
02 Jun 07
-
01 Jun 07
-
28 May 07
-
27 May 07
-
26 May 07
-
24 May 07
-
23 May 07
-
08 Dec 06
-
05 Jan 89
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.