Simple Css 3 buttons

I know that there are many oth­er ways to do this out there, but I just had to come up with my own, that pleased me visu­al­ly — you know how it is.. Down­load top 100 charts for free.

The but­tons can be found here: http://media.dkpn.jp/css/css3-buttons-01/ (CSS)
They should work with Fire­fox and Webkit based browsers (Safari, Chrome) bewer­bung vor­drucke kosten­los down­load­en.

The basic styling looks like this:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
a._but {text-dec­o­ra­tion: none; out­line: none;}
a._but:focus {-moz-out­line-style: none;}
._but {
back­ground: #ccc;
bor­der:1px sol­id #d9d9d8;
padding:7px 10px;
font-size:14px;
text-shad­ow: 0px 1px 0px #fff;
font-weight: bold;
col­or:#000;
box-shad­ow: 0px 1px 0px #666;
cur­sor: point­er;
white-space:nowrap;
}

You’ll notice the pseu­do class :focus, which tells Fire­fox not to add dots around a clicked ele­ment (as found here) mails herun­ter­laden thun­der­bird.

The oth­er “new” ele­ments are the text-shad­ow prop­er­ty, which seems to work with­out any pre­fix on my ver­sions of Fire­fox (3.6.12) and Chrome (5.0.375.70)/Safari(5.0.1), and the box-shad­ow one that just does­n’t work for now.. skype pc down­load kosten­los.
The white-space part if for inline links, to avoid them being cut in two.

The styling for Gecko-based browsers (Fire­fox):

1
2
3
4
5
6
7
back­ground: ‑moz-lin­ear-gra­di­ent(
   cen­ter bot­tom,
   rgb(224,224,224) 26%,
   rgb(238,238,238) 63%
);
‑moz-bor­der-radius: 10px;
‑moz-box-shad­ow: 0px 1px 0px #666;

and Webkit-based browsers (Chrome/Safari/Webkit):

1
2
3
4
5
6
7
8
9
back­ground: ‑webkit-gra­di­ent(
   lin­ear,
   left bot­tom,
   left top,
   col­or-stop(0.26, rgb(224,224,224)),
   col­or-stop(0.63, rgb(238,238,238))
);
‑webkit-bor­der-radius: 10px;
‑webkit-box-shad­ow: 0px 1px 0px #666;

Round­ed cor­ners, a sub­tle gra­di­ent for the back­ground, and a 1px drop shad­ow film net­flix­en. I must con­fess that I used this tool to grab the cor­rect rgb val­ues. Would love hex col­ors + alpha…

Pret­ty straight­for­ward win­dows 10 update 1809 manuell herun­ter­laden. I added two pseu­do class­es, hov­er and active for the but­ton states, using the same kind of prop­er­ties. The only part that might need atten­tion would be this one maybe:

1
2
-moz-box-shad­ow: 0px -1px 0px #666;
‑webkit-box-shad­ow: 0px -1px 0px #666;

The neg­a­tive val­ue of the box shad­ow gen­er­ates an inner shad­ow, which I used to give the impres­sion the but­ton is pressed youtube video iphone 7.

I guess you could just then pile up ven­dor pre­fix­es as you want…

2 Comments