Joe Kidd wrote:Is there a way to make a textbox "fill" it's parent component. Let's say I'm using h:panelGrid with columns set to 2. First column contains a label and second a textbox. What I want is to have the panel grid to be a certain length on the page and within it first column to be the length of the label (so label is "snug" in the column) and the textbox width to expand/shrink based on the width of the second column (as I said I want the text box to fill the second column).
I'm not sure if this can be achieved by setting the style of the textbox or setting columnclasses of panelGrid. Either way, I don't know what the CSS should be.
Thank you for your suggestions ahead of time.
try to experiment with the styles, you can add style in visual UI and after check in
JSP code, while you will find all css attributes you can create methods in backing bean for shrinking text box.