.panel { text-align: center; text-shadow: 0 1px 1px #555; background: #fff; } .panel a { border- top: 1px solid #4574A7; border- right: 1px solid #4574A7; display: table-cell; width: 1%; padding: 8px 2px; color: #fff; background: #5881B0; } .panel a:hover { background: #6A93C1; }