Hi, I do not understand your question, can you rephrase it? You can
embed your style inline in the HTML header, or you can have your html
page reference a .css file containing your styles.
The original question was about using variables inside the inline
style blocks of an html page. Howard said you have to remove the <!--
--> comments to make it work.
On 6/22/07, Jiri Mares <[EMAIL PROTECTED]> wrote:
Hi ...
or can I create page that is going to serve CSS instead of HTML??
Jirka
Howard Lewis Ship napsal(a):
>
> You can use expansions inside a <style> block, just as you can
> elsewhere in an HTML template. However, you have to eliminate the
> HTML comments when you do so, or the expansions will not be processed:
>
> <style type="text/css">
>
> body {
>
> background-color: #2D374A;
>
> background-image: url(${someBackground});
>
> }
>
> .MainTable {
>
> background-color: #B5BFD2;
>
> background-image: url(${someBackground});
>
> }
>
> </style>
>
> On 6/20/07, Bruce Petro <[EMAIL PROTECTED]> wrote:
>> Question: I've learned so far, to display an image ... you do something
>> like this:
>>
>> SomePage.java
>>
>> @Inject
>>
>> @Path("./art_logo.png")
>>
>> private Asset _someIcon;
>>
>> and then SomePage.html you do
>>
>> <img src="${someIcon}"/>
>>
>>
>>
>> BUT --- what's the syntax to use these in css EG: background images?
>>
>>
>>
>> <style type="text/css">
>>
>> <!--
>>
>> body {
>>
>> background-color: #2D374A;
>>
>> background-image: url(someBackground);
>>
>> }
>>
>> .MainTable {
>>
>> background-color: #B5BFD2;
>>
>> background-image: url(someBackground);
>>
>> }
>>
>> -->
>>
>> </style>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]