#menuDiv{ width: 100%; display: block; } #menuDiv a{ font-family: Ubuntu,Helvetica,sans-serif; font-size: 1em; height:20%; } #menu { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; background-color: rgb(65, 154, 28); } #logo{ height: 70%; margin-left: 1%; } .menuItem { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; color: white; width: 9%; min-width: 5em; font-weight: bold; text-decoration: none; padding: 0.8em; border-bottom: 4px solid rgb(65, 154, 28); border-top: 4px solid rgb(65, 154, 28); font-size: 1.1em; text-align: center; } .menuItem:hover{ cursor: pointer; border-bottom: 4px solid rgb(23, 23, 23); }