Hi,

I have a file _header.vm that links to an external stylesheet and
defines a section in html where the bannerBox should go.
(I'm trying to add a logo to the bannerBox via css).  Here is the
snippit of html code:

<html>
<head>
<link rel="stylesheet" type="text/css" media="all"
href="$model.weblog.stylesheet">
:
:
</head>
<body>
:

<div id="banner">
  <div class="bannerBox">
    <div class="divisionBox">
      <span class="division_name">AST</span>&nbsp;|&nbsp;
      <span class="subdivision_name">CPS</span>
    </div>
  </div>
:
</body>
</html>


my theme.xml has the  lines:

  <!-- stylesheet -->
  <stylesheet>
    <name>cps-custom.css</name>
    <description>Stylesheet for CPS theme</description>
    <link>cps-custom.css</link>
    <templateLanguage>velocity</templateLanguage>
    <contentsFile>cps-custom.css</contentsFile>
  </stylesheet>

:
:

<resource path="tbnymlogo.gif" />

In my cps-custom.css file I have:

.bannerBox {
    background-image: url($url.resource("tbnymlogo.gif"));
    background-repeat: no-repeat;
}

.bannerBox {
    width: 100%;
    height: 56px;
}

.bannerBox {
    background: #ffffff;
}


After i bring the server down and move in the new theme under the theme
directory, the image doesn't show.
Is there something i'm not understanding about accessing resources from
a css file ?
I know the css file is recognized because all the other styles i
specified get rendered.

Thank you,

Christopher M. Logan, AVP
Asset Servicing Technology
The BANK of NEW YORK MELLON Corporation
101 Barclay St, 12W
New York, NY 10286
Tel: (212) 815-5439
Mobile: (646) 529-9224
E-Mail: [EMAIL PROTECTED]


The information contained in this e-mail, and any attachment, is confidential 
and is intended solely for the use of the intended recipient. Access, copying 
or re-use of the e-mail or any attachment, or any information contained 
therein, by any other person is not authorized. If you are not the intended 
recipient please return the e-mail to the sender and delete it from your 
computer. Although we attempt to sweep e-mail and attachments for viruses, we 
do not guarantee that either are virus-free and accept no liability for any 
damage sustained as a result of viruses. 

Please refer to http://disclaimer.bnymellon.com/eu.htm for certain disclosures 
relating to European legal entities.

Reply via email to