struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Session A Mwamufiya" <smwam...@andrew.cmu.edu>
Subject Re: [OT] Re: setting the background with the s:head template
Date Fri, 21 Sep 2007 23:10:09 GMT
I tried it without the "." as well, just: body {background-color: #00FF00; }
but nothing changes.

I circumvented this issue by simply adding a <style> tag in the head.ftl, and not try
to alter the styles.css file.

Thanks.


> --- Session A Mwamufiya wrote:
>> .body {background-color: #00FF00;}
> 
> That's defining a class called "body"; does your <body...> tag have a
> "class='body'" attribute?
> 
> If you want to define a style for an HTML element you shouldn't (AFAIK,
> anyway; I guess I've never tried it) preface the element name with a "."
> (or "#", which defines the style for an id).
> 
> d.
> 
> 
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional
> commands, e-mail: user-help@struts.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message