> -----Original Message-----
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 25, 2004 5:45 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Tiles and well formed html 
> 
> 
> Hi,
> 
> I'm not sure if this is the correct way to continue a thread, 
> but here 
> goes...
> I have tried what Ruben suggested and I can get this to work 
> ok.  In his 
> example the 2 <P> tags are formatted dependant on which CSS style is 
> selected.
> I cannot get mine to work where the bit inside the <DIV> tag 
> is a Tile.

At the point at which all this is put together, tiles is no longer even in the 
picture.  It's the browser reading your CSS file and applying the styles to the HTML.  
Tiles knows nothing about that, since your problem is on client side, not server.
I would guess there is a problem with your CSS and HTML... but without both I don't 
kow what it would be.
I'd look at the source for the page from the browser.

> So my layout.jsp looks like:
> 
> <%@ taglib uri="struts/html-el" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> <HTML>
> <HEAD>
>   <link href="<html:rewrite page="/test.css" />" rel="stylesheet" 
> type="text/css">
> </HEAD>
> <body>
>   <table width="100%" height="519" border="1" cellspacing="5">
>     <tr>
>     <DIV id="headerTile">
>       <td height="46" colspan="2"><tiles:insert 
> attribute="header" /></td>
>     </DIV>
> 
> etc...
> 
> and my test.css file looks like:
> 
> #headerTile  {
>        font-family: sans-serif;
>        color: white;
>        background-color:blue;
>        font-size: 10pt;
> }
> #bodyTile  { font-family: sans-serif;
>        color: red;
>        background-color:blue;
>        font-size: 15pt;
> }
> etc...
> 
> and my header.jsp is just a basic html file with no style 
> sheets listed or 
> div tags.
> 
> Thanks,
> Andy
> 
> _________________________________________________________________
> Express yourself with cool new emoticons 
> http://www.msn.co.uk/specials/myemo
> 
> 
> ---------------------------------------------------------------------
> 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