forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Irrra <irina.danil...@gmail.com>
Subject Re: How to create a table with fixed width (and fixed width of the cells)?
Date Tue, 02 Sep 2008 17:58:14 GMT

The problem is still there :(


Thorsten Scherler-3 wrote:
> 
> On Mon, 2008-09-01 at 18:38 -0700, Irrra wrote:
>> Hi, 
>> 
>> I have a problem. I need to create several tables of the same (fixed
>> width) 
>> with the fixed widths of columns. What I'm getting are tables of the
>> different width with the widths of the columns different that the ones
>> I'm
>> specifying. On the top of that the layout changes when I'm resizing the
>> window (the width of the table and its columns changes). How to fix it? 
>> 
>> I'm working with pelt skin and trying to use something like this:
>> 
>> <table width="600">
> 
> As you noticed the width attribute is not allowed. You need to use css
> for it:
> <table class="width600">
> 
> Then add to your skinconf within the <extra-css> block the css
> definition:
> table.width600{
>  width: 600px;
> }
> 
> HTH
> 
> salu2
> 
>>   <tr align="left" valign="top">
>>     <td width="400">
>>        <p>test test test test</p>
>> </td>
>>     <td width="200" bgcolor="#FFFFFF"> 
>> ../resources/images/Fotolia_7868578_XS.jpg </td>
>>   </tr>
>> </table>
>> 
>> <table width="600">
>>   <tr align="left" valign="top">
>>     <td width="200" bgcolor="#FFFFFF">
>> ../resources/images/Fotolia_2809691_XS.jpg </td>
>>     <td width="200" bgcolor="#FFFFFF"><p>test</p>
>>         <p class="regulartext">test</p></td>
>> <td> 
>>         <p>test</p>
>>     </td>
>> 
>>   </tr>
>> </table>
> -- 
> Thorsten Scherler                                 thorsten.at.apache.org
> Open Source Java                      consulting, training and solutions
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-create-a-table-with-fixed-width-%28and-fixed-width-of-the-cells%29--tp19262991p19275246.html
Sent from the Apache Forrest - Users mailing list archive at Nabble.com.


Mime
View raw message