-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I want use label with a fix width (in pixels).
ZK < 3.0 no extra code
3.0 sclass="inline-box"
3.04 sclass="inline-block"
..
3.5 ??
<window title="My First Window" border="normal" width="200px"> <hbox> <label value="a" width="50px" sclass="inline-block" /> <textbox/> </hbox> <hbox> <label value="longer" width="50px" sclass="inline-block"/> <textbox/> </hbox> </window>
Here is an old thread.
/Robert
Hi Robert,
<span>s are inline elements. You can only set width on block-level elements. You can try display:block.
/robbie
Asked: 2009-02-12 00:54:38 +0800
Seen: 333 times
Last updated: Feb 12 '09