If you look at the generated HTML do you see a link to your stylesheet?

Toby

----- Original Message ----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: users@tapestry.apache.org
Sent: Friday, 16 May, 2008 10:11:18 AM
Subject: T5: absolute beginner's question with CSS

Hi,

I try to enable my css-file via @IncludeStylesheet in my components java class.
The file seems to be found (if I rename it the compiler complains, otherwise 
not)
but the css-markup does not show in the tml page.
What am I missing? My css-file is in the root folder of WebContent (Eclipse).
Thank you very much for your patience in answering,
Juliane

Here is my code:
=========
Start.tml: /* here I would expect to get blue background etc. for the page */
=========
<t:Layout xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
    <div class="indexlogo">Welcome! ${currentTime}</div>
</t:Layout>

=========
Start.java:
=========
public class Start{
    public Date getCurrentTime() { 
        return new Date(); 
    }
}

=========
Layout.tml:
=========
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
    <head>
        <title>Fionas Memory</title>       
    </head>
    <body>
        <h1>Fionas Memory</h1>
        <t:body/>
    </body>
</html>

==========
Layout.java:
==========
@IncludeStylesheet("context:memory.css")
public class Layout {

}

==========
memory.css:
==========
body{
color:#000;
background-color:#CFF;
min-width:740px;
margin-top:50px;
margin-left:80px;
padding:0;
font-size:1.0em;
font-family:Helvetica, Arial, sans-serif;
font-weight:bold;
letter-spacing:0.0em;
line-height:1.5em;
}

.indexlogo{
font-size:2.0em;
color:#369;
text-align:center;
background-color:#CFF;
padding-bottom:30px;
}
======== FINE ==========



_______________________________________________________________________
EINE FÜR ALLE: die kostenlose WEB.DE-Plattform für Freunde und Deine
Homepage mit eigenem Namen. Jetzt starten! http://unddu.de/[EMAIL PROTECTED]


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




Reply via email to