Foren

How to reduce the size of the custom portlet?

Ashish Sawant, geändert vor 10 Jahren.

How to reduce the size of the custom portlet?

New Member Beiträge: 3 Beitrittsdatum: 11.03.14 Neueste Beiträge
Hi,

I have created a sample carousel using AUI in view.jsp of a custom portlet.
The carousel (700x250) using AUI works as it should be, but the carousel is not contained completely within the portlet.
The height of the portlet is visible.
I tried changing the css properties through the look and feel option in Liferay 6.1.
Below is the css properties.

#p_p_id_PortalPortlet_WAR_PortalPortletportlet_{
width: 700px;
height:250px;
margin-left:90px;
box-shadow: 5px 5px 5px #888888;
}

Can anybody help me here to contain the carousel completely within the portlet and that no portlet area becomes visible?
Please advice if this is a good practice or is there any other better way?


Regards,
Ashish Sawant
thumbnail
meera prince, geändert vor 10 Jahren.

RE: How to reduce the size of the custom portlet?

Liferay Legend Beiträge: 1111 Beitrittsdatum: 08.02.11 Neueste Beiträge
Hi
May be some margin or padding effect that and use chrome inspect element feature and try to fix css properties

and after decide height and width then remove borders then it looks better.


Regards,
Meera Prince