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>&nbsp;&nbsp;&nbsp; background-color:green;<br>&nbsp;&nbsp;&nbsp; color:white;<br>
&nbsp;&nbsp;&nbsp; font-weight:bold;<br>}<br>.container {<br>&nbsp;&nbsp;&nbsp; background:#e0eeff;<br>}<br>.item {<br>&nbsp;&nbsp;&nbsp; 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>&lt;head&gt;&nbsp;&nbsp;&nbsp; <br><br>&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;<br>
<br>&lt;title&gt;&lt;label id=&quot;layoutLabel&quot;/&gt;&lt;/title&gt;<br><b>&lt;link rel=&quot;stylesheet&quot; type=&quot; text/css&quot; href=&quot;../../css/master.css&quot;/&gt;</b><br>&lt;/head&gt;<br><br>&lt;body&gt;<br>
<br>&lt;table border=&quot;1&quot; width=&quot;100%&quot;&gt;<br><br>&lt;tr&gt;<br><br>&lt;td colspan=&quot;2&quot; align=&quot;center&quot; height=&quot;20&quot;&gt;<br><br>&lt;span class=&quot;oneField&quot;&gt;<br><br>
<b>&lt;te:include id=&quot;layoutHeader&quot; te:src=&quot;/layout/header.html&quot;/&gt;</b><br><br>&lt;/span&gt;<br><br>&lt;/td&gt;<br><br>&lt;/tr&gt;<br>&lt;tr&gt;<br>&lt;td width=&quot;40&quot;&gt;&lt;te:include id=&quot;layoutMenu&quot; te:src=&quot;/layout/menu.html&quot;/&gt;&lt;/td&gt;<br>
&lt;td height=&quot;475&quot; valign=&quot;top&quot;&gt;&lt;te:includeChildBody id=&quot;LayoutChildBody&quot;/&gt;&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;tr&gt;<br>&lt;td colspan=&quot;2&quot; align=&quot;right&quot; height=&quot;20&quot;&gt;<br>
&lt;span class=&quot;threeField&quot;&gt;<br><b>&lt;te:include id=&quot;layoutFooter&quot; te:src=&quot;/layout/footer.html&quot;/&gt;</b><br>&lt;/span&gt;<br>&lt;/td&gt;<br>&lt;/tr&gt;<br>&lt;/table&gt;<br>&lt;/body&gt;<b><br>
</b><br><b>HeaderPage.java<br>::::::::::::::::::::::::::::</b><br>public class HeaderPage {<br><b>public String getHeaderColorStyleClass() {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; Random random = new Random();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int mod = Math.abs(random.nextInt()) % 3;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; switch (mod) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case 0:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return &quot;headerColor1&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case 1:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return &quot;headerColor2&quot;;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; default:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return &quot;headerColor3&quot;;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }</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">&lt;<a href="mailto:yone@abby.co.jp">yone@abby.co.jp</a>&gt;</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>
&lt;head&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/css/sample.css&quot; /&gt;&lt;/head&gt;<br>
&lt;body id=&quot;layoutbody&quot;&gt;<br>
&lt;te:include id=&quot;layoutHeader&quot; te:src=&quot;/layout/header.html&quot;/&gt;<br>
&lt;te:include id=&quot;layoutFooter&quot; te:src=&quot;/layout/footer.html&quot;/&gt;<br>
&lt;/body&gt;<br>
<br>
[header.html]<br>
&lt;html&gt;<br>
&lt;body&gt;<br>
&lt;span id=&quot;headerColor&quot; class=&quot;headerColor2&quot;&gt;<br>
this is header<br>
&lt;/span&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
<br>
[footer.html]<br>
&lt;html&gt;<br>
&lt;body&gt;<br>
&lt;span id=&quot;footerColor&quot; class=&quot;footerColor&quot;&gt;<br>
this is footer<br>
&lt;/span&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
<br>
[HeaderPage.java]<br>
public class HeaderPage {<br>
 &nbsp;public String getHeaderColorStyleClass() {<br>
 &nbsp; &nbsp;Random random = new Random();<br>
 &nbsp; &nbsp;int mod = Math.abs(random.nextInt()) % 3;<br>
 &nbsp; &nbsp;switch (mod) {<br>
 &nbsp; &nbsp;case 0:<br>
 &nbsp; &nbsp; &nbsp;return &quot;headerColor1&quot;;<br>
 &nbsp; &nbsp;case 1:<br>
 &nbsp; &nbsp; &nbsp;return &quot;headerColor2&quot;;<br>
 &nbsp; &nbsp;default:<br>
 &nbsp; &nbsp; &nbsp;return &quot;headerColor3&quot;;<br>
 &nbsp; &nbsp;}<br>
 &nbsp;}<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>
&gt; Hai,<br>
&gt;<br>
&gt;<br>
&gt; I am using layout in my teeda project.How to set the background color for<br>
&gt; header,footer etc....<br>
&gt;<br>
&gt; *&lt;style&gt;<br>
&gt; .layout.header{background-color:red}<br>
&gt; &lt;/style&gt;*<br>
&gt;<br>
&gt; whether the above syntex is correct or not?<br>
&gt;<br>
&gt; This is not working...Please give the correct way to change the color of<br>
&gt; header...<br>
&gt;<br>
&gt; Thanks in advance.<br>
<br></div></div><font color="#888888">
-- <br>
米 林 &nbsp; 正 明<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>