�> I am trying to integrate tigris CSS (http://style.tigris.org/ , it is a very 
well-designed CSS template) into workbench's Border example.
�> But I found that inside tigris.css there are some relative image URL , such as 

�> #toptabs td, #toptabs th {
�>  background-image: url(../images/nw_min_036.gif);
�>  }

�> When I bind the 'private-asset' (tigris.css) to the Shell component , it won't find 
the images.
�> But I don't want to make another images/ directory outside WEB-APP directory.
�> (That is , I hope the tigris.css and the relative images both remain inside 
WEB-APP/classes/ directories)
�> How to solve it ?

I solved that handcrafting the URL in the CSS stylesheet for accesing
the images through the AssetService.

Excerpt:

.maintoolbar_table td {
        background: url(app?service=asset&sp=/com/ts/web/base/style/images/nw_min.gif) 
no-repeat; /* background: url(images/nw_min.gif) no-repeat; */
        background-color: #DDDDDD;
        border-bottom: 1px solid #000000;
        border-right: 1px solid #000000;
        font: bold 10pt;
        padding: 0px 4px 1px 4px;
}

Of course this is not very elegant and useless for WYSIWYG editors.
Surely somebody has a better way. Anyone?

-- 
Saludos, Pablo mailto:pil@;ieee.org




-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to