use a stylesheet.  You can declare it in your tiles definition and discover
it in your jsp
You can have <style> tags in the <head>, or use a linked stylesheet -- you
can declare that in a definition, if you use a controller you can
dynamically set it.
set:

body {
  padding: 0px;
  margin: 0px;
}

use inline styles in your tables and td's

----- Original Message ----- 
From: "koen boutsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 31, 2003 2:10 AM
Subject: tiles and margins


> hi
> I'm using tiles for my application. I don't work with definitions, but
with layout.jsp pages :
>
> <BODY marginheight="0" marginwidth="0" >
> <table border="0" cellpadding="0" cellspacing="0" width="100%">
>
> <tr bgcolor="cyan">
> <!-- banner -->
> <td height="70" valign="top"><tiles:insert attribute="header" /></td>
> </tr>
> <tr bgcolor="yellow"><!-- body -->
> <td width="100%" height="668"><tiles:insert attribute="body" /></td>
> </tr>
> </table>
> </BODY>
>
> I want my header in a certain color and my body in another color, with no
margins around them. If I use the code above, I get these margins, even if I
use marginheight = "0".
>
> I tried to give the <body> tag from the header.jsp and body.jsp a bgcolor,
but then my whole page takes the first color that is found.
>
> If I don't explained it clearly, don't hesitate to mail me, because I'm
really stuck on this one.
>
> Thanks
>
> Koen Boutsen
> [EMAIL PROTECTED]
>
>
> ____________________________________________________________
> FREE ADHD DVD or CD-Rom (your choice) - click here!
>
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632/131726/311392/311392
> AOL users go here:
http://ad.doubleclick.net/clk;6413623;3807821;f?http://mocda2.com/1/c/563632/131726/311392/311392
> This offer applies to U.S. Residents Only
>
> ---------------------------------------------------------------------
> 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]

Reply via email to