-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3604740
By: tskale
Tried applying following style to all the elements: menubar, menu, menuitem, menupopup but none of them changed the menu font.
style="font-size: 18px; font-weight: bold"
What am I missing?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3604759
By: tomyeh
The HTML tags generated for menu components are sophisticated. It is suggested to override CSS class. Please take a look at normie.css (in zul.jar). Once you figure out what CSS class is, you could use <?style-sheet ...?> to load your CSS file.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3604798
By: tskale
There normie.css.dsp file. I think thatis what you are refering to, right?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3604816
By: tomyeh
Yes, normie* for IE, normoz for FF... Refer to User Guide.
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=4104715
By: dave_hamu
I have tried to change the font by following the suggestion, but with no success.
It would be great to see an example...
for instance an example that displays all of the menu items and popup items as 18pt.
Thank you,
Dave
Using zk 6.5
I'm doing this to change the menu font:
<style>
.z-menubar-hor .z-menu-btn {
font-size: 20px;
}
.navmenu .z-menu-body-seld .z-menu-inner-l,
.navmenu .z-menu-body-seld .z-menu-inner-r {
background: none;
}
.navmenu .z-menu-body-seld .z-menu-inner-r {
background-position: 0 0px;
}
.navmenu .z-menu-body-seld .z-menu-inner-m {
background-image: none;
}
.navmenu .z-menu-body-seld .z-menu-inner-m .z-menu-btn {
position:relative;
top: 1px;
}
</style>
And:
<menu sclass="navmenu" label="@bind(menu.data.title)">
Those styles are in the source code: src/code/archive/web/js/zul/menu/css/menu.css.dsp
I have to override more css rules to get rid of some effects when the menu is selected (-seld) because they are implemented with a fixed size image, and it does not grow.
I'm currenty trying to figure out how to apply this font change only to one menu, not to all the application's menus. I defined a navmenu key (sclass='navkey') to do that but, exactly the font size, does no runs if it's not the global rule:
.navmenu .z-menubar-hor .z-menu-btn {
font-size: 20px;
}
Thie does not run! The reason is that the font size is used in a inner html object, a button tag. I'm trying to select this inner button
Any idea of how to target this inner html component so i can style only one menu not the whole application?
Asked: 2006-03-01 14:10:54 +0800
Seen: 210 times
Last updated: Nov 13 '13