[Zope] Working with CSS'
David H
bluepaul at earthlink.net
Tue Jun 7 00:10:23 EDT 2005
Jason Leach wrote:
>hi,
>
>I have a site developed with CSS. We just translated the site to
>German. The problem I have is with some embedded graphics. For
>example:
>#rightcolumn h1 {
> background: transparent url("i/news_title.jpg") no-repeat top left;
> height: 38px;
> width: 180px;
> margin: 0;
> padding: 0;
>}
>
>This is the English graphic. If people are in the German side, I need
>news_title_de.jpg. But I'm not sure how to deal with this without
>doing a separate CSS file.
>
>Thanks,
>Jason.
>
>
Jason,
Here a simple minded try using:
<html>
<head>
<title tal:content="template/title">The title</title>
<tal:test tal:condition="not: python: context.REQUEST.has_key('german','')">
<style type="text/css">
PUT CSS CODE HERE FOR GERMAN IMAGE
</style>
</tal:test>
</head>
Just set the request to the language and it should work,
David
More information about the Zope
mailing list