Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Primefaces menubar vertical separator

Tags:

css

primefaces

I am using PrimeFaces 3.5. There is a vertical seperator in p:toolbar (https://www.primefaces.org/showcase/ui/panel/toolbar.xhtml).

I want to use vertical seperator in p:menubar. When I use the <p:separator /> tag in p:menubar, it makes a horizontal seperator.

How can i use vertical seperator in p:menubar?

Thanks.

like image 775
Selcuk Avatar asked Oct 08 '13 09:10

Selcuk


2 Answers

I did it with next css:

.ui-menu .ui-separator { 
   background: #A8A8A8; 
   border: none; 
   width: 1px; 
   clear: none; 
   height: 22px; 
   margin: 4px 6px 0; 
   box-shadow: none; 
}

The key things are width and clear. Height, background color and margin you can adjust for your preferences.

like image 122
Tsimon D Avatar answered Nov 09 '22 05:11

Tsimon D


Try this:

<p:spacer width="1" height="22" style="position: relative; bottom: -5px;background-color: #A8A8A8; margin-left: 10px;margin-right: 10px" />

enter image description here

like image 28
Douglas Nassif Roma Junior Avatar answered Nov 09 '22 07:11

Douglas Nassif Roma Junior