<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Roger,<br>
<br>
i've downloaded the package, tried to modify the css file according to
readme.txt, but something i miss<br>
i receive the folllowing exception:<br>
TypeError: ('Could not adapt',
&lt;zc.resourcelibrary.publication.Request instance<br>
URL=<a class="moz-txt-link-freetext" href="http://localhost:8080/ap_test/@@/++resource++">http://localhost:8080/ap_test/@@/++resource++</a>&gt;,
&lt;InterfaceClass zope.app.rot<br>
terdam.Rotterdam&gt;)<br>
<br>
this is my css file:<br>
/* zrt-replace: "img" "++resource++/img" */<br>
.tabs {<br>
&nbsp;&nbsp;&nbsp; position:relative;<br>
&nbsp;&nbsp;&nbsp; height: 27px;<br>
&nbsp;&nbsp;&nbsp; margin: 0px;<br>
&nbsp;&nbsp;&nbsp; padding: 0px;<br>
&nbsp;&nbsp;&nbsp; background:url("img/bar_off.gif") repeat-x;<br>
&nbsp;&nbsp;&nbsp; overflow:hidden<br>
}<br>
&nbsp;<br>
this is my configure.zcml file:<br>
&nbsp; &lt;zrt-resource<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; name="tabbed_style.css"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file="tabbed_style.css"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /&gt;<br>
&nbsp; &lt;resource name="bar_on.gif"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file="img/bar_on.gif"/&gt;<br>
&nbsp; &lt;resource name="bar_off.gif"<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; file="img/bar_off.gif"/&gt;<br>
<br>
can you help me what i made wrong?<br>
<br>
<br>
Roger Ineichen wrote:
<blockquote cite="mid004301c74013$6b5c5d00$2163a8c0@Mobile03"
 type="cite">
  <pre wrap="">Hi Ivan

  </pre>
  <blockquote type="cite">
    <pre wrap="">Subject: [Zope3-Users] css question

Dear All,

i would like to use a tabbed display on my view. there are 
different background gifs for the selected tab and for the 
not selected tabs.
the positioning and changing/displaying tab contents is 
working, but the background display gifs are not loaded.
please give me a hint how i have to define them
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Please use z3c.zrtresource for build url path in CSS files.
Samples are included in the README.txt in the package.

With zrtresource you can write url references as CSS comments
which lokks like:

-----
/* zrt-replace: "../img" "++resource++/img" */
h1 {
  color: red;
  background: url('../img/mybackground.gif');
}
-----

You can find z3c.zrtresource at:
<a class="moz-txt-link-freetext" href="svn://svn.zope.org/repos/main/z3c.zrtresource">svn://svn.zope.org/repos/main/z3c.zrtresource</a>

Regards
Roger Ineichen

  </pre>
  <blockquote type="cite">
    <pre wrap="">Best Regards,

Iv&aacute;n Horv&aacute;th
Chief Programmer
    </pre>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 97">
<title>Iv&aacute;n Horv&aacute;th</title>
<p><font face="Arial, Helvetica, sans-serif" size="2">Best Regards,</font></p>
<p><font face="Arial" size="2">Iv&aacute;n Horv&aacute;th<br>
Chief Programmer</font> </p>
<p><font face="Arial" size="2">Alcatel NSD<br>
PMS 2000 Product Team</font> </p>
<p><font face="Arial" size="2">H-1116, Budapest<br>
Kondorfa u. 10.<br>
Tel.: +36 1 209 9546<br>
Fax.: +36 1 209 9599<br>
Mobil: +36 30 257 0235<br>
E-mail: </font><a href="mailto:i.horvath@alco.co.hu"><font face="Arial"
 size="2">i.horvath@alco.co.hu</font></a><font face="Arial" size="2"><br>
<a href="http://www.freeweb.hu/pillesoft">Check my Web Page</a> </font></p>
<font face="Arial" size="2">
</font>
<p><em><font face="Arial" size="2">Anyone who has never made a mistake
has never tried anything new.</font></em> </p>
<font face="Arial" size="2"><em>
<p>/Albert Einstein/</p>
</em></font></div>
</body>
</html>