留言板

Colors in layout template

thumbnail
lutz Bremen,修改在12 年前。

Colors in layout template

Expert 帖子: 291 加入日期: 11-10-20 最近的帖子
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,修改在12 年前。

RE: Colors in layout template

Liferay Master 帖子: 803 加入日期: 08-3-10 最近的帖子
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,修改在12 年前。

RE: Colors in layout template

Expert 帖子: 291 加入日期: 11-10-20 最近的帖子
i create my layout template with eclipse. where should i add the css definition?
thumbnail
Jignesh Vachhani,修改在12 年前。

RE: Colors in layout template

Liferay Master 帖子: 803 加入日期: 08-3-10 最近的帖子
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,修改在12 年前。

RE: Colors in layout template

Liferay Legend 帖子: 1302 加入日期: 09-6-24 最近的帖子
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,修改在12 年前。

RE: Colors in layout template

Expert 帖子: 291 加入日期: 11-10-20 最近的帖子
ok i just solved the problem thanks