CSS: Top menu items margins and paddings converted to absolute units to prevent changing outer width on hover.

This commit is contained in:
Jan Prachař
2011-02-01 23:13:10 +01:00
committed by Marc Delisle
parent c05c4da984
commit 9b4543f2e8
2 changed files with 8 additions and 8 deletions

View File

@@ -680,14 +680,14 @@ ul#topmenu li, ul#topmenu2 li {
/* default tab styles */ /* default tab styles */
ul#topmenu a, ul#topmenu span { ul#topmenu a, ul#topmenu span {
display: block; display: block;
margin: 0.2em 0.2em 0 0.2em; margin: 2px 2px 0;
padding: 0.2em 0.2em 0 0.2em; padding: 2px 2px 0;
white-space: nowrap; white-space: nowrap;
} }
ul#topmenu ul a { ul#topmenu ul a {
margin: 0; margin: 0;
padding-bottom: 0.2em; padding-bottom: 2px;
} }
ul#topmenu .submenu { ul#topmenu .submenu {
@@ -797,7 +797,7 @@ ul#topmenu ul li:first-child a {
ul#topmenu > li > a:hover, ul#topmenu > li > a:hover,
ul#topmenu > li > .tabactive { ul#topmenu > li > .tabactive {
margin: 0; margin: 0;
padding: 0.2em 0.4em 0.2em 0.4em; padding: 2px 4px;
text-decoration: none; text-decoration: none;
} }

View File

@@ -655,14 +655,14 @@ ul#topmenu li, ul#topmenu2 li {
/* default tab styles */ /* default tab styles */
ul#topmenu a, ul#topmenu span { ul#topmenu a, ul#topmenu span {
display: block; display: block;
margin: 0.2em 0.2em 0 0.2em; margin: 2px 2px 0;
padding: 0.2em 0.2em 0 0.2em; padding: 2px 2px 0;
white-space: nowrap; white-space: nowrap;
} }
ul#topmenu ul a { ul#topmenu ul a {
margin: 0; margin: 0;
padding-bottom: 0.2em; padding-bottom: 2px;
} }
ul#topmenu .submenu { ul#topmenu .submenu {
@@ -772,7 +772,7 @@ ul#topmenu ul li:first-child a {
ul#topmenu > li > a:hover, ul#topmenu > li > a:hover,
ul#topmenu > li > .tabactive { ul#topmenu > li > .tabactive {
margin: 0; margin: 0;
padding: 0.2em 0.4em 0.2em 0.4em; padding: 2px 4px;
text-decoration: none; text-decoration: none;
} }