liferay - How to set width of Primefaces-Carousel to full page width? -


i have created carousel in primefaces/liferay. has fixed width , height. how can set full page/ full div width of portlet?

you can add custom styles primefaces-carousel following ways:

itemstyle attribute inline styling of <p:carousel> tag:

itemstyle="width:100%;" 

itemstyleclass attribute style class of <p:carousel> tag:

itemstyleclass="fullwidthclass" 

or add width inside container either through styleclass or style attribute following:

<ice:panelgrid style="width:100%"></ice:panelgrid> <ice:panelgrid styleclass="fullwidthclass"></ice:panelgrid> 

css:

fullwidthclass {     width: 100%;     /* other properties */ } 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -