Fórum

How to fix the size of column in layout template

Назойливый Вопрошатель, modificado 12 Anos atrás.

How to fix the size of column in layout template

Junior Member Postagens: 45 Data de Entrada: 11/10/11 Postagens Recentes
Hello, folks! emoticon Is that possible to fix the size of column to fit image of any size into it?
thumbnail
Ravi Kumar Gupta, modificado 12 Anos atrás.

RE: How to fix the size of column in layout template

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
A layout is nothing but collection of html Table-tr-td or Div to hold the portlets. You can create a new layout and set the width="XXXpx" in td/div. See this directory for the existing layouts. This will give you idea. Directory which holds all layout templates- tomcat-6.0.29\webapps\ROOT\layouttpl\custom
thumbnail
Ravi Kumar Gupta, modificado 12 Anos atrás.

RE: How to fix the size of column in layout template

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
Alternatively you can modify the theme css to fix the width.. If you see the layouts in LR6.x, you will see the class of td/div as aui-wXX .. That css is applied by Alloy UI. You need to override that in your theme and it will work.
Назойливый Вопрошатель, modificado 12 Anos atrás.

RE: How to fix the size of column in layout template

Junior Member Postagens: 45 Data de Entrada: 11/10/11 Postagens Recentes
Thanks for answer, but I've already tried those variants. The point is to set fixed size not in pixels, but in percents. The solutions has to scale the image in proper way to enroll it into the column