Hai,<br><br>Thanks for your reply.....<br><br>I tried your sample coding.but the header color didnt change...<br><br><b>master.css<br>:::::::::::::::::</b><br>.heading {<br> background-color:green;<br> color:white;<br>
font-weight:bold;<br>}<br>.container {<br> background:#e0eeff;<br>}<br>.item {<br> color:#610B0B;<br>}<br><b>.headerColor1{background-color:red;}<br></b><b>.headerColor2{background-color:blue;}<br>.headerColor3{background-color:yellow;}</b><br>
<b>.footerColor{background-color:blue;}<br></b><br><br><br><br><b>layout.html<br>::::::::::::::::::<br></b><head> <br><br><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><br>
<br><title><label id="layoutLabel"/></title><br><b><link rel="stylesheet" type=" text/css" href="../../css/master.css"/></b><br></head><br><br><body><br>
<br><table border="1" width="100%"><br><br><tr><br><br><td colspan="2" align="center" height="20"><br><br><span class="oneField"><br><br>
<b><te:include id="layoutHeader" te:src="/layout/header.html"/></b><br><br></span><br><br></td><br><br></tr><br><tr><br><td width="40"><te:include id="layoutMenu" te:src="/layout/menu.html"/></td><br>
<td height="475" valign="top"><te:includeChildBody id="LayoutChildBody"/></td><br></tr><br><tr><br><td colspan="2" align="right" height="20"><br>
<span class="threeField"><br><b><te:include id="layoutFooter" te:src="/layout/footer.html"/></b><br></span><br></td><br></tr><br></table><br></body><b><br>
</b><br><b>HeaderPage.java<br>::::::::::::::::::::::::::::</b><br>public class HeaderPage {<br><b>public String getHeaderColorStyleClass() {<br> Random random = new Random();<br> int mod = Math.abs(random.nextInt()) % 3;<br>
switch (mod) {<br> case 0:<br> return "headerColor1";<br> case 1:<br> return "headerColor2";<br> default:<br> return "headerColor3";<br>
}<br> }</b><br>}<br><br>I checked both in firebox and IE6...The background -color of header is always white.<br><br>Is there any mistake in the above coding?<br><br>Thanks in advance.<br><br><br><br><br><br><div class="gmail_quote">
2009/5/8 <a href="mailto:yone@abby.co.jp">yone@abby.co.jp</a> <span dir="ltr"><<a href="mailto:yone@abby.co.jp">yone@abby.co.jp</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, thomas.<br>
<br>
The following are samples.<br>
<br>
[sample.css]<br>
.headerColor1{background-color:red;}<br>
.headerColor2{background-color:blue;}<br>
.headerColor3{background-color:yellow;}<br>
.footerColor{background-color:blue;}<br>
<br>
[layout.html]<br>
<head><link rel="stylesheet" type="text/css" href="/css/sample.css" /></head><br>
<body id="layoutbody"><br>
<te:include id="layoutHeader" te:src="/layout/header.html"/><br>
<te:include id="layoutFooter" te:src="/layout/footer.html"/><br>
</body><br>
<br>
[header.html]<br>
<html><br>
<body><br>
<span id="headerColor" class="headerColor2"><br>
this is header<br>
</span><br>
</body><br>
</html><br>
<br>
[footer.html]<br>
<html><br>
<body><br>
<span id="footerColor" class="footerColor"><br>
this is footer<br>
</span><br>
</body><br>
</html><br>
<br>
[HeaderPage.java]<br>
public class HeaderPage {<br>
public String getHeaderColorStyleClass() {<br>
Random random = new Random();<br>
int mod = Math.abs(random.nextInt()) % 3;<br>
switch (mod) {<br>
case 0:<br>
return "headerColor1";<br>
case 1:<br>
return "headerColor2";<br>
default:<br>
return "headerColor3";<br>
}<br>
}<br>
}<br>
<br>
Was the problem before solved?<br>
<a href="http://ml.seasar.org/archives/seasar-user/2009-April/017300.html" target="_blank">http://ml.seasar.org/archives/seasar-user/2009-April/017300.html</a><br>
<br>
<br>
thomas さんは書きました:<div><div></div><div class="h5"><br>
> Hai,<br>
><br>
><br>
> I am using layout in my teeda project.How to set the background color for<br>
> header,footer etc....<br>
><br>
> *<style><br>
> .layout.header{background-color:red}<br>
> </style>*<br>
><br>
> whether the above syntex is correct or not?<br>
><br>
> This is not working...Please give the correct way to change the color of<br>
> header...<br>
><br>
> Thanks in advance.<br>
<br></div></div><font color="#888888">
-- <br>
米 林 正 明<br>
<a href="http://www.abby.co.jp" target="_blank">http://www.abby.co.jp</a><br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org" target="_blank">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</font></blockquote></div><br>