Portlet size control

I am using Liferay 6.1.1.

I have created a portlet in eclipse via pluggin sdk 6.1.1.

Now I want to resize the portlet.

How can I change it?

help me

+3


source to share


3 answers


Most of the time via page layout (history as admin, management, page layout). It is good practice for your portlet to render / style the generic so that it can adapt to the theme and layout of the hosting page so that it can be used for subsequent projects and various portal configurations.



+2


source


This is usually done with CSS templates and templates. But you can use some css right in your portlet. Also, the portlet could be maximized and minimized, so the portlet doesn't need too much css.



+1


source


You can add your own css for the portlet instance:

Options-> Look and Feel-> Advined Styling

Add a CSS rule for this portlet only.

Example:

#portlet_56_INSTANCE_ENG7BaroFy5f{
    width: 800px;
    height: 440px;
} 

      

+1


source







All Articles