<style>
body {
font-family: 'Prompt', serif;
background: #e7ceb2;
}
.container {
height: 330px;
width: 1000px;
position: absolute;
top: 50%;
left: 50%;
transform: translatex(-50%) translateY(-50%);
background: rgba(255, 255, 255, 0.5);
padding: 20px;
border: 1px solid #fe3199;
box-shadow: 0 0 8px 3px #fff;
}
.title {
padding-top: 20px;
text-align: center;
font-size: 36px;
text-transform: uppercase;
color: #fe3199;
}
.question {
padding: 20px;
font-size: 22px;
background: #fe3199;
border-radius: 20px;
margin: 10px 0 10px 0;
color: #f6f6f6;
}
.option {
width: 470px;
display: inline-block;
padding: 10px 0 10px 15px;
vertical-align: middle;
background: rgba(255, 255, 255, 0.5);
margin: 10px 0 10px 10px;
color: #000000;
border-radius: 20px;
}
.option:hover {
background: #fe3199;
color: #f6f6f6;
}
.next-btn {
border: none;
outline: none;
background: #2990ff;
width: 100px;
height: 35px;
border-radius: 20px;
cursor: pointer;
float: right;
margin: 10px;
color: #fff;
font-family: 'Prompt', serif;
}
.next-btn:hover {
background: #9a00ff;
color: #f6f6f6;
}
.result {
height: 100px;
text-align: center;
font-size: 75px;
}
.reset {
/* height: 330px;
width: 1000px; */
position: absolute;
top: 80%;
left: 50%;
transform: translatex(-50%) translateY(-50%);
}
.option input:checked .option {
background: #fe3199;
color: #000;
}
</style>
แชร์โค้ดทำแบบทดสอบ web app : style
Tags:
แชร์โค้ด