Mam taki problem mam sobie stronę i 5 buttonów i one są nierówne w linni poziomej i za uwżyłem, że to jest spowodowna tym, że mają w sobie różnej wielkości text jak w buttony nie będzie tekstu to wtedy sa w miarę równe
Tu jest scrren w wersji dla buttonów z textem
A tutaj bez
Daje kod.
html
<div class="button-div">
<button class="button-bye button-four">KUPUJE CYFRĘ -50 ptk</button>
<button class="button-bye button-one">KUPUJE SPÓŁGŁOSKĘ -80 ptk</button>
<button class="button-bye button-two">KUPUJE SAMOGŁOSKĘ -150 ptk</button>
<button class="button-bye button-three">ZGADUJE HASŁO</button>
<button class="button-bye button-five">ZREZYGNUJ Z GRY</button>
</div>
Css
div.button-div {
display: inline-block;
}
button.button-bye {
width: 110px;
margin: 8px;
height: 120px;
display: inline-block;
}
button.button-one {
font-size: 12px;
font-weight:bold;
margin: 0 auto;
}
button.button-disable {
font-size:13px;
font-weight:bold;
}
button.button-two {
font-size: 12px;
font-weight:bold;
}
button.button-four {
font-size: 12px;
font-weight:bold;
}
button.button-five {
font-size: 12px;
font-weight:bold;
}
button.button-three {
font-size: 12px;
font-weight:bold;
}
button.button-word-three {
font-size: 12px;
font-weight: bold;
}
button.button-one {
box-shadow: 0px 0px 11px 3px #001bcc;
background-color:#594bab;
border-radius:18px;
border:2px solid #1e1057;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Impact;
text-decoration:none;
text-shadow:0px 0px 19px #dbdbdb;
}
button.button-disable {
box-shadow: 0px 0px 11px 3px #38494E;
background-color:#64838C;
border-radius:18px;
border:2px solid #38494E;
display:inline-block;
cursor: not-allowed;
color:#ffffff;
font-family:Impact;
text-decoration:none;
text-shadow:0px 0px 19px #dbdbdb;
}
button.button-one:hover {
background-color:#0c1061;
}
button.button-one:active {
position:relative;
top:1px;
}
button.button-two {
box-shadow: 0px 0px 11px 3px #707070;
background-color:#65c43f;
border-radius:18px;
border:2px solid #c2aa32;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Impact;
text-decoration:none;
text-shadow:0px 0px 19px #dbdbdb;
}
button.button-two:hover {
background-color:#3b9449;
}
button.button-two:active {
position:relative;
top:1px;
}
button.button-four {
box-shadow: 0px 0px 11px 3px #707070;
background-color:#EEE82C;
border-radius:18px;
border:2px solid #c2aa32;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Impact;
text-decoration:none;
text-shadow:0px 0px 19px #dbdbdb;
}
button.button-four:hover {
background-color:#DBBB1C;
}
button.button-four:active {
position:relative;
top:1px;
}
button.button-five {
box-shadow: 0px 0px 11px 3px #7D187D;
background-color:#F22EEF;
border-radius:18px;
border:2px solid #7D187D;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Impact;
text-decoration:none;
text-shadow:0px 0px 19px #dbdbdb;
}
button.button-five:hover {
background-color:#8A0E9A;
}
button.button-five:active {
position:relative;
top:1px;
}
button.button-three {
box-shadow: 0px 0px 11px 3px #dba15a;
background-color:#c2523e;
border-radius:18px;
border:2px solid #eb1717;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Impact;
text-decoration:none;
text-shadow:0px 0px 19px #dbdbdb;
}
button.button-three:hover {
background-color:#db6f34;
}
button.button-three:active {
position:relative;
top:1px;
}
button.button-word-three {
box-shadow: 0px 0px 7px 4px #d96a20;
background-color:#cc1f00;
border-radius:21px;
border:2px solid #db7241;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Arial;
text-decoration:none;
text-shadow:0px 0px 0px #ad1c09;
}
button.button-word-three:hover {
background-color:#990b0b;
}
button.button-word-three:active {
position:relative;
top:1px;
}