0

separator Style Problem

asked 2010-10-14 06:03:34 +0800

moloch gravatar image moloch
606 1 13

updated 2010-10-14 06:04:34 +0800

Hello, i have a separator and want to style it but the style guide does not help me.

i just want to make the separator bold like in the borderlayout for example.

can anybody please tell me how to do that?


						<row>
							<cell colspan="5" >
								<separator bar="true"  />
							</cell>
						</row>

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2010-10-14 11:22:43 +0800

twiegand gravatar image twiegand
1807 3

Moloch,

I believe that since the separator bar is actually an image, you can't make simply change the style to make it bold. I suspect you'll have to use a different dot.gif image (as described here).

Once CSS3 is adopted in all the browsers, you'll be able to use the background-size property. Unfortunately, I think the only browser that supports this currently is Chrome. If you happen to have Chrome and want to see the result, try the following code:

<zk>
	<style>
		.z-separator-hor-bar {
			background-size: 30em;	
			height: 50px;		
		}
	</style>
	<window style="padding: 25px;" border="normal" >
		<label value="Top"/>
		<separator bar="true"/>
		<label value="Bottom"/>
	</window>
</zk>

Maybe someone else has a better solution...

Regards,

Todd

link publish delete flag offensive edit

answered 2010-10-14 12:42:43 +0800

terrytornado gravatar image terrytornado flag of Germany
9393 3 7 16
http://www.oxitec.de/

updated 2010-10-14 12:43:17 +0800

That's the only way i know.

<zk...
   xmlns:h="http://www.w3.org/1999/xhtml"
   ...
<window...

	<style>hr {border: 0px; border-bottom: 1px dashed #069;}</style>


	<h:hr />
       . . .

best
Stephan

link publish delete flag offensive edit

answered 2010-10-14 13:54:26 +0800

twiegand gravatar image twiegand
1807 3

Moloch,

In thinking more about your question, perhaps you could try empty vlayout / hlayout tags. Consider:

<zk>
	<window style="padding: 25px;">
		<vlayout>
			<label value="Top" />
			<separator />
			<hlayout width="50px" style="border: 3px solid red;"/>
			<separator />
			<label value="Bottom"/>
		</vlayout>
		
		<space spacing="50px" orient="horizontal"/>
		
		<hlayout>
			<label value="Left" />
			<separator />
			<vlayout width="0px" height="50px" style="border: 3px solid red;"/>
			<separator />
			<label value="Right"/>
		</hlayout>
	</window>	
</zk>

Hopefully the above code will give you some ideas...

Todd

link publish delete flag offensive edit

answered 2010-10-16 03:55:53 +0800

moloch gravatar image moloch
606 1 13

thanks allot for your answers..
it works. but i want to use it in a grid and it does not begins at the beginning of the left side of the window. how can i fix it? i cant find a css which fix it.

greets

link publish delete flag offensive edit

answered 2010-10-19 17:39:06 +0800

twiegand gravatar image twiegand
1807 3

Moloch,

If you'll provide us with a simple, runnable example I bet we can help.

Todd

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-10-14 06:03:34 +0800

Seen: 800 times

Last updated: Oct 19 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More