Hi Karan.

Karan wrote:

I don't have an answer to your problem, but I do have a question:
The user of your webapp can customize extendedCssStyle for his/her own layout settings.
But a different user can modify it again for different settings.
How do you maintain the different layouts for different users?

First to the answer: it was just a reference to the wrong directory. It works perfectly now.


Second to the question: 'user' was the wrong term for the description I gave. I ment the customer. The customer can change the design with the extendedCssStyle, and whereever she does not do design, the basicCssStyle would be used.

  Bernd

Thanks,
Karan

Bernd Schiffer wrote:

Hi.

I have two css files in the head of my jsp's:

        <link id="extendedStyleSheet" rel="stylesheet" type="text/css"
charset="utf-8" title="extended sg-style"
                href="<html:rewrite forward='extendedCssStyle'/>" />
        <link id="basicStyleSheet" rel="stylesheet" type="text/css"
charset="utf-8" title="basic sg-style"
                href="<html:rewrite forward='basicCssStyle'/>" />

The basicCssStyle's first line has the statement:
        @import url(../basic.css);

The idea is that the user of my webapp can edit the extendedCssStyle
file for her own layout settings. When she updates the webapp she only
gets a new basicCssStyle file. And because of the order of appearence
(first extended, then basic css file) the browser will display the
extended layout first. If the user does not edit the extended style, the
basic style will be displayed. So far, so idea...

This does work in IE and FireFox 1.0.1 on Windows XP. When I define a
style in the basic css file, I can see it when I choose the extended
style, because it is inherited from the basic style.

The problem now is that this does not work in Mozilla 1.7.3 on Windows
and FireFox 1.0 on Linux. In the same case as above I can't see the
layout, so it seems that it was not inherited from the basic css file.
When I switch to the basic style, everythings seems fine and I can see
the style.

Does anyone know if this is a browser problem? Can I do anything to
force the import (without copy'n'paste, of course)? Or is there a
different pattern using Struts for something like that?

   Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to