Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make dynamic size columns

 
Mario Gimenez
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have this in my xhtml page.



The datalist values are variable, for example the items in that can be, 3,4,5,6....
I need to manage the width of each column and item of the column in an individual way to represent correctly on the page.

Please help!!!
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Mario,

Are you trying to control the style, width: ?

WP
 
Mario Gimenez
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
William P O'Sullivan wrote:Hello Mario,

Are you trying to control the style, width: ?

WP


Hi!, I try to control the position of each item inside the datalist with width. I'll to explain.

for example....


inside my panelgrid I have 3 columns.
First column -> only a outputText I need put this column in... width: 20%. for example.
Second columns -> I have a datalist with n items. here's the problem. If I have for example width: 50% I need to manage the posicion for the items, if I have only 4 items, I need to have a distance (width: 150px) but if I have 6 items, I need put them in another distance (width:50px)
Third column -> here I have 3 items I need to put width: 15%

Do you have any idea?
Thanks in advance!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!