Foros de discusión

Colors in layout template

thumbnail
lutz Bremen, modificado hace 12 años.

Colors in layout template

Expert Mensajes: 291 Fecha de incorporación: 20/10/11 Mensajes recientes
Hey guys is it possible to define a color for a special collumn?
like when i have 3 coluumns i want the right on e to be grey. whaere do i define this?

thanks for your tipps
thumbnail
Jignesh Vachhani, modificado hace 12 años.

RE: Colors in layout template

Liferay Master Mensajes: 803 Fecha de incorporación: 10/03/08 Mensajes recientes
You can create proper CSS class which has grey background.
And you can apply that class when you create any new layout or change existing layout.
thumbnail
lutz Bremen, modificado hace 12 años.

RE: Colors in layout template

Expert Mensajes: 291 Fecha de incorporación: 20/10/11 Mensajes recientes
i create my layout template with eclipse. where should i add the css definition?

Archivos adjuntos:

thumbnail
Jignesh Vachhani, modificado hace 12 años.

RE: Colors in layout template

Liferay Master Mensajes: 803 Fecha de incorporación: 10/03/08 Mensajes recientes
you can define CSS in theme.
And just apply that CSS class in your layout layout_25G_50W_25W.tpl file.
thumbnail
Ravi Kumar Gupta, modificado hace 12 años.

RE: Colors in layout template

Liferay Legend Mensajes: 1302 Fecha de incorporación: 24/06/09 Mensajes recientes
Lutz, .tpl files are which contains our actual template. If you are writing a theme then its better to define those css rules in that theme. But if you have just simple background colors, you can directly use style attribute in html tags. Preferred is to define in theme though.

-Ravi
thumbnail
lutz Bremen, modificado hace 12 años.

RE: Colors in layout template

Expert Mensajes: 291 Fecha de incorporación: 20/10/11 Mensajes recientes
ok i just solved the problem thanks