Fórumok
different CSS styles to different locale
Martin Ronky, módosítva 15 év-val korábban
different CSS styles to different locale
New Member Bejegyzések: 21 Csatlakozás dátuma: 2008.06.06. Legújabb bejegyzések
Hi,
when user changes his language, I want to show different images on the background. I have read that it is possible to change CSS to different browsers, operating systems... is there a way to feed different CSS styles to different locale?
when user changes his language, I want to show different images on the background. I have read that it is possible to change CSS to different browsers, operating systems... is there a way to feed different CSS styles to different locale?
Ray Augé, módosítva 15 év-val korábban
Re: [Liferay Forums][4. Custom Theme Development] different CSS styles to d
Liferay Legend Bejegyzések: 1197 Csatlakozás dátuma: 2005.02.08. Legújabb bejegyzések
Not OTB, but it's really very simple to implement a very nice mechanism.
Simply add this to your portal_normal.vm:
[tt]<body class="$css_class ${locale.toString()}">[/tt]
Then anywhere in your theme's css you can pre-qualify
definitions you want applied, when a particular language is selected, with the locale
string.
e.g.
[tt].fr_CA .some_class {
...
}[/tt]
HTH!
Simply add this to your portal_normal.vm:
[tt]<body class="$css_class ${locale.toString()}">[/tt]
Then anywhere in your theme's css you can pre-qualify
definitions you want applied, when a particular language is selected, with the locale
string.
e.g.
[tt].fr_CA .some_class {
...
}[/tt]
HTH!
Martin Ronky, módosítva 15 év-val korábban
RE: Re: [Liferay Forums][4. Custom Theme Development] different CSS styles
New Member Bejegyzések: 21 Csatlakozás dátuma: 2008.06.06. Legújabb bejegyzések
Thanks for swift reply, it works.