# Set grid column to take remainder of width?

davout
1435 3 18

Is it possible to set a grid column width so that it takes the remainder of ther available width?

For instance....

<grid width="95%">
<columns>
<column width="120px" />
<column width="*"/>
<column width="120px" />
</columns>


The grid is to take 95% of the available space. I want the first and 3rd columns to be of fixed size, and the middle column to fill the remainder of the width.

Is this possible?

delete retag edit

## 4 Replies

james
255 2

I actually just copied your code, and it works for me...

<zk>
<grid width="95%">
<columns>
<column width="120px" label="1"/>  //label them just so i know
<column width="*" label="2"/>
<column width="120px" label="3"/>
</columns>
</grid>
</zk>

the first and third columns take up a set amount, the middle column fills the rest. I can change the grid width to 100% and the the middle column is stretched, while the other 2 columns remain the same width.
So if that doesn't work, I dont know why.

davout
1435 3 18

Sorry, it's an IE8 problem. The web browser display is fine within MyEclipse, but if I run it outside in an IE8 page its all over the place.

james
255 2

It seems that lots of people are experiencing problems with IE8 rendering things properly. (i havn't tested anything with IE8 yet)

davout
1435 3 18

.... when's that going to happen?

[hide preview]