CSS: Top menu items margins and paddings converted to absolute units to prevent changing outer width on hover.
This commit is contained in:

committed by
Marc Delisle

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