Difference between revisions of "Template:KU Leuven Test/css"
Line 17: | Line 17: | ||
} | } | ||
− | .menu | + | .menu li { |
− | + | float:left; | |
− | + | position:relative; | |
− | + | ||
− | + | ||
} | } | ||
− | .menu | + | .menu>li:first-of-type { |
− | + | float:left; | |
− | + | position:relative; | |
+ | margin-left: 2em; | ||
} | } | ||
− | .menu li { | + | .menu li a { |
− | + | display:block; | |
+ | font-size:0.9em; | ||
+ | line-height:2em; | ||
+ | padding: 0em 2.5em 1.25em 0em; | ||
+ | vertical-align:middle; | ||
+ | text-decoration:none; | ||
+ | text-transform: uppercase; | ||
+ | border: none; | ||
} | } | ||
+ | .menu-indicator { | ||
+ | width: 100%; | ||
+ | height: 10px; | ||
+ | display:block; | ||
+ | visibility:hidden; | ||
+ | } | ||
+ | |||
+ | |||
+ | .menu ul { | ||
+ | position: absolute; | ||
+ | left: -9999px; | ||
+ | list-style: none; | ||
+ | } | ||
+ | .menu ul li { | ||
+ | float: none; | ||
+ | } | ||
+ | .menu ul a { | ||
+ | white-space: nowrap; | ||
+ | } | ||
+ | |||
+ | .menu li:hover ul { | ||
+ | padding-top: 0.8em; | ||
+ | left: 0px; | ||
+ | z-index:1; | ||
+ | } | ||
+ | |||
+ | .menu li:hover ul a { | ||
+ | background: none; | ||
+ | padding: 0.75em 1em 0.75em 1em; | ||
+ | } | ||
</style> | </style> | ||
Revision as of 08:44, 2 July 2015
<!DOCTYPE html>