Skip to Content
author's profile photo Former Member
Former Member

Problem with FormLayoutCell Width (EP602)

Hi,

I have a question regarding setting the width of a FormLayoutCell:

If the width of a <i>FormLayoutCell </i>is set to a width in pixels, the width is not rendered correctly in the browser. If the width of the parent <i>FormLayout </i>is set, the width of the cell is set correctly.

My investigations have shown that for the cell in the HTML code the width is set with the style attribute (e.g. <td style="width:150"> ). The width of the layout is set with the "width" attribute of the "table" tag (e.g. <table width="500"> ). Setting the width of the FormLayout can be a workaround in some cases (even so it is not very nice), but the problem I have found here is that the cells which have not a widht set are distributed more or less evenly over the remaining size of the table. This is very ugly.

The best solution I have found so far, is to set the style sheet attribute <b>table-layout</b> to <b>fixed </b>(eg. <table style="table-layout:fixed"> ). This works very well and seems to be the clean way. Unfortunately I couldnt find a way to set this in the FormLayout API.

Due to the fact that the FormLayout is <b>THE </b>HTMLB layout I guess that I share my problem with other developer. So, I would be glad for any ideas.

Regards,

Kai<i></i>

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Mar 02, 2004 at 01:19 PM

    You could define a stylesheet for the page in which you overwrite the default table style.

    Just use place the following specification in a .css file which you include on the page

    TABLE { table-layout: fixed }

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.