|
Rank: Newbie Groups: Member
Joined: 12/31/2009 Posts: 3
|
Is it possible to set width of the HTML Editor using % (ex: 100%)?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Yes. You can do that. However please keep in mind that sometimes even simple HTML elements won't work consistently with percent width with complex page layouts, so there is no guarantee that percent width will work on the Editor on every possible scenario either. Thus we advice you to start with simple layout first.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 12/31/2009 Posts: 3
|
Thank you for a quick response!
The problem is that I am trying to enhance existing form that already has simple HTML elements with their width set to 100% and they do work but HTML Editor doesn't. Currently HTML table is used for the layout and the Editor goes under <td> tag. Could it be that I should use different control as a parent?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
There is no fixed rules on which will or will not work, let alone that different browsers may decide to calculate them differently. Table is especially tricky because the browser always try to automatically adjust the cell size to "better accommodates" the size of the cell contents, this often can get very unpredictable when what you really wanted is exactly the other way around --- for the cell contents to resize based on the cell size.
So basically you just have to try. Start from a simple page and make sure it works. Then change/add other things and see what breaks. You have to do that even you are working with an existing page --- just try take everything out, make sure it work, then start to put things back in step by step. Only after you know what breaks the layout, you can start to work on plans to get around it.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 12/31/2009 Posts: 3
|
Ouch. Thanks!
|
|