body { background-color: aliceblue; margin: 0px; } .box1 { text-align: left; position: absolute; top: 30px; left: 100px; user-select: none; -moz-user-select: none; -ms-user-select: none; -webkit-user-select: none; } .upper { color: rgb(255, 115, 0); font-weight: bolder; font-family: sans-serif; font-size: 45px; letter-spacing: -10px; } .lower { color: rgb(255, 183, 124); /* font-weight: bold; */ font-family: sans-serif; font-size: 45px; letter-spacing: -5px; } .box2 { margin-left: 100px; margin-top: 20px; } #contents { background-color: white; border: none; border-radius: 2px; } .menu { width: 1080px; height: 50px; background-color: rgb(255, 183, 124); margin-left: 100px; margin-top: 100px; border-radius: 2px; } ul { list-style: none; text-decoration: none; padding: 0; user-select: none; -moz-user-select: none; -ms-user-select: none; -webkit-user-select: none; } li { display: inline-block; width: 266px; height: 50px; margin-left: 80px; margin-top: 15px; margin: 0; text-align: center; /* transform: translateX(30deg); -moz-transform: translateX(30deg); -ms-transform: translateX(30deg); -o-transform: translateX(30deg); -webkit-transform: translateX(30deg); animation: li .2s infinite; */ } .row_menu { position: relative; top: 15px; } a { text-decoration-line: none; font-family: youyuan; font-size: 16px; color: white; } li:hover { background-color: rgb(255, 115, 0); } /* @keyframes li { 0%{ transform: translateX(30deg); } } */ .row_menu:active { color: rgb(255, 183, 124); }