Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul>
- <li><a href="#"><span>Link</span></a>
- </li>
- <li><a href="#"><span>Link</span></a>
- </li>
- <li><a href="#"><span>Link</span></a>
- </li>
- <li><a href="#"><span>Link</span></a>
- </li>
- </ul>
- ul li a {
- display: block;
- text-align: center;
- background: orange;
- overflow: hidden;
- height: 100%;
- }
- ul li a span {
- display: block;
- position: relative;
- top: 50%;
- }
- ul {
- height: 100%;
- list-style: none;
- display:table;
- width:100%;
- }
- ul li {
- height: 25%;
- display:table-row;
- }
- ul li a {
- display: table-cell;
- text-align: center;
- background: orange;
- vertical-align:middle;
- border-bottom:1px solid white;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement