Hi All,
How do I change the height of the main menu as the height is inconsistent due to some of main menu's item stretches to 2 rows while, the other main menu's items are stretched to 1 row.
Code is below
Cheers...
Andrew
css
How do I change the height of the main menu as the height is inconsistent due to some of main menu's item stretches to 2 rows while, the other main menu's items are stretched to 1 row.
Code is below
Cheers...
Andrew
css
Code:
<style type="text/css" media="screen"> <!-- body { margin: 0; padding: 0; background: white; font: 80% verdana, arial, sans-serif; } dl, dt, dd, ul, li { margin: 0; padding: 0; list-style-type: none; line-height:2em; } #menu { position: relative; /* Menu position that can be changed at will */ top: 180; left: 200; z-index:100; width: 100%; /* precision for Opera */ } #menu dl { float: left; width: 9em; } #menu dt { cursor: pointer; text-align: center; font-weight: bold; background: #ff00ff; border: 1px solid gray; margin: 1px; } #menu dd { display: none; border: 1px solid gray; } #menu li { text-align: center; background: #ff00ff; } #menu li a, #menu dt a { color: #000000; text-decoration: none; display: block; height: 100%; border: 0 none; } #menu li a:hover, #menu li a:focus, #menu dt a:hover, #menu dt a:focus { background: #eee; } #site { position: absolute; z-index: 1; top : 70px; left : 10px; color: #000; background-color: #ddd; padding: 5px; border: 1px solid gray; } --> </style>
Comment