Oldalak

Showing posts with label button. Show all posts
Showing posts with label button. Show all posts

Saturday, October 1, 2016

Buttons with css









<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Buttons with css</title>
</head>
<style>
.button {
    background-color: #FF0;
    border: none;
    color: #060;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}

.button1 {border-radius: 2px;}
.button1:hover{ color:#900; background-color:#FC0;}
.button2 {border-radius: 4px;}
.button2:hover{ color:#900; background-color:#FC0;}
.button3 {border-radius: 8px;}
.button3:hover{ color:#900; background-color:#FC0;}
.button4 {border-radius: 12px;}
.button4:hover{ color:#900; background-color:#FC0;}
.button5 {border-radius: 24px;}
.button5:hover{ color:#900; background-color:#FC0;}


.button6 {border-radius: 10%;}
.button6:hover{ color:#900; background-color:#FC0;}
.button7 {border-radius: 20%;}
.button7:hover{ color:#900; background-color:#FC0;}
.button8 {border-radius: 30%;}
.button8:hover{ color:#900; background-color:#FC0;}
.button9 {border-radius: 40%;}
.button9:hover{ color:#900; background-color:#FC0;}
.button10 {border-radius: 50%;}
.button10:hover{ color:#900; background-color:#FC0;}

</style>



</head>
<body>
<p>
<button class="button button1">2px</button>
<button class="button button2">4px</button>
<button class="button button3">8px</button>
<button class="button button4">12px</button>
<button class="button button5">24px</button>
</p>
<p>
<button class="button button6">2px</button>
<button class="button button7">4px</button>
<button class="button button8">8px</button>
<button class="button button9">12px</button>
<button class="button button10">24px</button>
</p>
</body>
</html>
<body>
</body>
</html>


 

Wednesday, February 10, 2016

3D gomb linkekhez



Sign Up!

<style>

a.css3dbutton {
    background: darkred; /* background color of button */
    color: white;
    text-decoration: none;
    font: bold 28px Arial; /* font size and style */
    position: relative;
        top: 0; /* anchor main button's position */
    bottom: -12px; /* Depth of 3D effect. :after pseudo element inherits this value so it's animated in Chrome. See: kizu.ru/en/pseudos */
        margin-bottom: 12px;
    -moz-box-shadow: 0 -15px 5px darkred inset;
    -webkit-box-shadow: 0 -15px 5px darkred inset;
    box-shadow: 0 -15px 5px darkred inset;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

a.css3dbutton, a.css3dbutton:after {
    display: inline-block;
    padding: 10px 15px; /* vertical and horizontal padding of button */
    -moz-border-radius: 8px/15px;
    -webkit-border-radius: 8px/15px;
    border-radius: 8px/15px;
    outline: none;
}

a.css3dbutton:after { /* pseudo element to construct 3D side of button */
    content: "";
    position: absolute;
    padding: 0;
    z-index: -1;
    bottom: inherit; /* Inherit main button bottom value to animate it. See: kizu.ru/en/pseudos */
    left: 0;
    width: 100%;
    height: 100%;
    background: #6e0e0c; /* background color of 3D effect */
    -moz-box-shadow: 1px 0 3px gray;
    -webkit-box-shadow: 1px 0 3px gray;
    box-shadow: 1px 0 3px gray;
}

a.css3dbutton:hover {
    -moz-box-shadow: 0 25px 5px rgba(182, 64, 61, 0.7) inset;
    -webkit-box-shadow: 0 25px 5px rgba(182, 64, 61, 0.7) inset;
    box-shadow: 0 25px 5px rgba(182, 64, 61, 0.7) inset;
    background: #bc3835; /* background color when mouse rolls over button */
}

a.css3dbutton:active {
    top: 12px; /* shift button down 12px when depressed. Change 12px to match button's "bottom" property above */
    bottom: 0;
    -moz-box-shadow: 0 -20px 5px darkred inset, 1px 1px 2px #eee;
    -webkit-box-shadow: 0 -20px 5px darkred inset, 1px 1px 2px #eee;
    box-shadow: 0 -20px 5px darkred inset, 1px 1px 2px #eee;
}

</style>



<a class="css3dbutton" href="#">Sign Up!</a>






Saturday, December 19, 2015

3D buttons





<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>3D kerek gombok</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style>

a.css3dbutton {
    background: #c1e75c; /* default green background color of button */
    color: black;
    text-decoration: none;
    font: bold 18px Arial; /* font size and style */
    position: relative;
    display: inline-block;
    margin-right: 15px; /* spacing between multiple buttons */
    padding: 15px; /* padding inside button */
    border-radius: 85px; /* border radius of button */
    width: 65px; /* dimensions of button */
    height: 65px;
    outline: none;
    box-shadow: 0 8px 0 #8dab3b, /* depth and color of main shadow */
        0 0 3px rgba(0,0,0, 0.2),
        0 20px 20px #eee;
    -moz-transition: all 0.2s ease-in-out; /* transition style and duration */
    -o-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

a.css3dbutton span.outer{ /* outermost text container */
    text-align: center;
    width: 100%;
    display: block;
    position: relative;
    top: 50%; /* center element */
    -webkit-transform: translateY(-50%); /* center element */
    -ms-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    transform: translateY(-50%);
}

a.css3dbutton span.outer span.top{ /* top line */
    display: block;
    padding-bottom: 4px;
}

a.css3dbutton span.outer span.bottom{ /* bottom line */
    border-top: 1px solid black;
    padding-top: 4px;
    display: block;
    text-transform: uppercase;
    line-height: 12px;
    font-size: 60%;
}


a.css3dbutton:hover {
    background: #9cc62b; /* background color when mouse rolls over button */
    box-shadow:  none;
    -ms-transform: translateY(8px); /* shift button downwards by shadow depth amount */
    -webkit-transform: translate3D(0, 8px, 0);
    -moz-transform: translateY(8px);
    transform: translate3D(0, 8px, 0);
}


a.css3dbutton.blue{
    background: #a6e9f7;
    box-shadow: 0 8px 0 #529dad, /* depth and color of main shadow */
        0 0 3px rgba(0,0,0, 0.2),
        0 20px 20px #eee;
}

a.css3dbutton.blue:hover {
    background: #66cbe1; /* background color when mouse rolls over button */
    box-shadow: none;
}

a.css3dbutton.pink{
    background: #fbbaba;
    box-shadow: 0 8px 0 #d74848, /* depth and color of main shadow */
        0 0 3px rgba(0,0,0, 0.2),
        0 20px 20px #eee;
}

a.css3dbutton.pink:hover {
    background: #ea6161; /* background color when mouse rolls over button */
    box-shadow: none;
}

a.css3dbutton.yellow{
    background: #f3fa86;
    box-shadow: 0 8px 0 #dbcd2f, /* depth and color of main shadow */
        0 0 3px rgba(0,0,0, 0.2),
        0 20px 20px #eee;
}

a.css3dbutton.yellow:hover {
    background: #ecd347; /* background color when mouse rolls over button */
    box-shadow: none;
}



a.css3dbutton.szurke{
    background: #cccccc;
    box-shadow: 0 8px 0 #666666, /* depth and color of main shadow */
        0 0 3px rgba(0,0,0, 0.2),
        0 20px 20px #eee;
}

a.css3dbutton.szurke:hover {
    background: #999999; /* background color when mouse rolls over button */
    box-shadow: none;
}
</style>



</head>

<body>

<a href="#" class="css3dbutton">
<span class="outer">
<span class="top">Sign Up!</span>
<span class="bottom">It's free and fast</span>
</span>
</a>
<br>
<a href="#" class="css3dbutton blue">
<span class="outer">
<span class="top">Sign Up!</span>
<span class="bottom">It's free and fast</span>
</span>
</a>
<br>
<a href="#" class="css3dbutton pink">
<span class="outer">
<span class="top">Sign Up!</span>
<span class="bottom">It's free and fast</span>
</span>
</a>
<br>
<a href="#" class="css3dbutton yellow">
<span class="outer">
<span class="top">Sign Up!</span>
<span class="bottom">It's free and fast</span>
</span>
</a>
<p>
<a href="#" class="css3dbutton szurke">
<span class="outer">
<span class="top">Hello!</span>
<span class="bottom">Mizu Mizu</span>
</span>
</a>
</p>
</body>
</html>


3D kerek gombok Sign Up! It's free and fast
Sign Up! It's free and fast
Sign Up! It's free and fast
Sign Up! It's free and fast Hello! Mizu Mizu