|
Rank: Advanced Member Groups: Member
Joined: 7/18/2008 Posts: 76
|
Good Morning,
I have a simple question about height percentage formatting within a callbackpanel. Is it possible for you to format the height as a percentage within the callbackpanel?
The following code below is an example of what I am referring to. The height of listBox1 height percentage doesn't work within the callbackpanel, however, listBox2 outside the callback panel height percentage does work.
Do I have the DOCTYPE or xmlns declared wrong?
I hope this question is easy for you. I am not a "formatting expert".
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi,
No. You can not do that. Height percentage generally does not work on page level because page's height depends on content height, so you can not have content height depends on page height at the same time.
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 7/18/2008 Posts: 76
|
Thanks. I figured it out....
I needed to remove the "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" from the DOCTYPE tag.
This TAG DOESN'T WORK: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
This DOES work with percentages: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0">
Sorry to have bugged you. Hope this helps someone else in the future.
|
|
Rank: Advanced Member Groups: Member
Joined: 7/18/2008 Posts: 76
|
I meant <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> works....
|
|