Back Again,
I still cannot get this to work
If I use
#fade-in
{
height: 24px;
background-image:url(C:/RRRSystems/Eclipse/Common/Image/
FadeIn.gif);
background-repeat:repeat-x;
}
All works great.
I Have created a Path Variable in my Eclipse Project:
COMMON_LOC C:\RRRSystems\Eclipse\Common
How can I use this in the CSS?
I have tried:
background-image:url(COMMON_LOC/Common/Image/FadeIn.gif);
background-image:url(@COMMON_LOC/Common/Image/FadeIn.gif);
background-image:url($COMMON_LOC/Common/Image/FadeIn.gif);
background-image:url({COMMON_LOC}/Common/Image/FadeIn.gif);
background-image:url(${COMMON_LOC}/Common/Image/FadeIn.gif);
background-image:url({$COMMON_LOC}/Common/Image/FadeIn.gif);
background-image:url(%COMMON_LOC%/Common/Image/FadeIn.gif);
None of these seem to do anything.
How can I use the COMMON_LOC Variable?
Thanks,
Raney
On Sep 28, 3:37 pm, RRRaney <[email protected]> wrote:
> Hello,
>
> I am having trouble trying to access a common resource using Eclipse
> SDK Version:3.6.1.
> If I can get it working as is, I will try to get it going using Linked
> Resources.
>
> Current Workspace: C:\RRRSystems\Eclipse.
> Current Project: C:\RRRSystems\Eclipse\AppEngine\MyApplication
> Common Resource: C:\RRRSystems\Eclipse\Common\Image\FadeIn.gif
>
> Directory Structure:
>
> C:\RRRSystems
> C:\RRRSystems\Eclipse
> C:\RRRSystems\Eclipse\AppEngine
> C:\RRRSystems\Eclipse\AppEngine\MyApplication
> C:\RRRSystems\Eclipse\AppEngine\MyApplication\war
> C:\RRRSystems\Eclipse\AppEngine\MyApplication\war\MyApplication.css
> C:\RRRSystems\Eclipse\AppEngine\MyApplication\war\MyApplication.html
> C:\RRRSystems\Eclipse\Common\Image
> C:\RRRSystems\Eclipse\Common\Image\FadeIn.gif
>
> In MyApplication.html I have a link to MyApplication.css
> <link rel="stylesheet"
> type="text/css"
> rel="stylesheet"
> href="MyApplication.css">
>
> In MyApplication.css I have the style fade-in
> I have used fade-in as the div id in MyApplication.html
> #fade-in
> {
> height: 24px;
> background-image:url(../../../Common/Image/FadeIn.gif);
> background-repeat:repeat-x;
>
> }
>
> My Relative Path Notation:
> ../ = C:\RRRSystems\Eclipse\AppEngine\MyApplication
> ../../ = C:\RRRSystems\Eclipse\AppEngine
> ../../../ = C:\RRRSystems\Eclipse
>
> I have tried just about everything that I can think of to get this to
> work, but nothing.
>
> The only way that I can get it to work is to move FadeIn.gif to:
> C:\RRRSystems\Eclipse\AppEngine\MyApplication\war\FadeIn.gif
> And change MyApplication.css to:
> #fade-in
> {
> height: 24px;
> background-image:url(FadeIn.gif);
> background-repeat:repeat-x;
>
> }
>
> Any ideas would be appreciated.
>
> Thanks,
>
> Raney
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.