Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
lutz Bremen
Colors in layout template
April 19, 2012 1:06 AM
Answer

lutz Bremen

Rank: Expert

Posts: 291

Join Date: October 20, 2011

Recent Posts

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
Jignesh Vachhani
RE: Colors in layout template
April 19, 2012 1:13 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 795

Join Date: March 10, 2008

Recent Posts

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.
lutz Bremen
RE: Colors in layout template
April 19, 2012 1:13 AM
Answer

lutz Bremen

Rank: Expert

Posts: 291

Join Date: October 20, 2011

Recent Posts

i create my layout template with eclipse. where should i add the css definition?
Attachment

Attachments: layout.png (9.3k)
Jignesh Vachhani
RE: Colors in layout template
April 19, 2012 1:16 AM
Answer

Jignesh Vachhani

Rank: Liferay Master

Posts: 795

Join Date: March 10, 2008

Recent Posts

you can define CSS in theme.
And just apply that CSS class in your layout layout_25G_50W_25W.tpl file.
Ravi Kumar Gupta
RE: Colors in layout template
April 19, 2012 1:21 AM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1303

Join Date: June 23, 2009

Recent Posts

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
lutz Bremen
RE: Colors in layout template
April 20, 2012 2:45 AM
Answer

lutz Bremen

Rank: Expert

Posts: 291

Join Date: October 20, 2011

Recent Posts

ok i just solved the problem thanks