0% found this document useful (0 votes)
3 views17 pages

CSS Button Hover Effects Guide

The document contains multiple styles for three buttons labeled 'one', 'two', and 'three', all styled with a green background and white text. Each button has hover effects that change their padding and margin, creating a visual transition. The styles are repeated multiple times throughout the document.

Uploaded by

saimirnal7
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views17 pages

CSS Button Hover Effects Guide

The document contains multiple styles for three buttons labeled 'one', 'two', and 'three', all styled with a green background and white text. Each button has hover effects that change their padding and margin, creating a visual transition. The styles are repeated multiple times throughout the document.

Uploaded by

saimirnal7
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

<style>

.one{

background-color: green;

color: white;

margin-left: 5px;

margin-right: 5px;

cursor: pointer;

border: none;

.one:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.two{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.two:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;
padding-right: 15px;

transition-duration: 0.15s;

.three{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.three:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

</style>

<button class="one">one</button>

<button class="two">two</button>

<button class="three">three</button>

<style>

.one{

background-color: green;

color: white;
margin-left: 5px;

margin-right: 5px;

cursor: pointer;

border: none;

.one:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.two{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.two:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.three{
margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.three:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

</style>

<button class="one">one</button>

<button class="two">two</button>

<button class="three">three</button>

<style>

.one{

background-color: green;

color: white;

margin-left: 5px;

margin-right: 5px;

cursor: pointer;

border: none;
}

.one:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.two{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.two:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.three{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;
cursor: pointer;

border: none;

.three:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

</style>

<button class="one">one</button>

<button class="two">two</button>

<button class="three">three</button>

<style>

.one{

background-color: green;

color: white;

margin-left: 5px;

margin-right: 5px;

cursor: pointer;

border: none;

.one:hover{

margin-left: -5px;

margin-right: -5px;
padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.two{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.two:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.three{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.three:hover{
margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

</style>

<button class="one">one</button>

<button class="two">two</button>

<button class="three">three</button>

<style>

.one{

background-color: green;

color: white;

margin-left: 5px;

margin-right: 5px;

cursor: pointer;

border: none;

.one:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

}
.two{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.two:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.three{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.three:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;
transition-duration: 0.15s;

</style>

<button class="one">one</button>

<button class="two">two</button>

<button class="three">three</button>

<style>

.one{

background-color: green;

color: white;

margin-left: 5px;

margin-right: 5px;

cursor: pointer;

border: none;

.one:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.two{

margin-left: 5px;

margin-right: 5px;

background-color: green;
color: white;

cursor: pointer;

border: none;

.two:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.three{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.three:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

</style>
<button class="one">one</button>

<button class="two">two</button>

<button class="three">three</button>

<style>

.one{

background-color: green;

color: white;

margin-left: 5px;

margin-right: 5px;

cursor: pointer;

border: none;

.one:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.two{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

}
.two:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.three{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.three:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

</style>

<button class="one">one</button>

<button class="two">two</button>

<button class="three">three</button>
<style>

.one{

background-color: green;

color: white;

margin-left: 5px;

margin-right: 5px;

cursor: pointer;

border: none;

.one:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.two{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.two:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;
padding-right: 15px;

transition-duration: 0.15s;

.three{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.three:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

</style>

<button class="one">one</button>

<button class="two">two</button>

<button class="three">three</button>

<style>

.one{

background-color: green;

color: white;
margin-left: 5px;

margin-right: 5px;

cursor: pointer;

border: none;

.one:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.two{

margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.two:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

.three{
margin-left: 5px;

margin-right: 5px;

background-color: green;

color: white;

cursor: pointer;

border: none;

.three:hover{

margin-left: -5px;

margin-right: -5px;

padding-left: 15px;

padding-right: 15px;

transition-duration: 0.15s;

</style>

<button class="one">one</button>

<button class="two">two</button>

<button class="three">three</button>

You might also like