Multiple APEX regions in the same size (width)

Von Tobias Arnhold 1.12.2009
First of all (I know its a bit late) I wish everybody a healthy and successfully year 2009.
Now let's talk about APEX...

Have you every came about the problem that you have several reports on a page and they all show up in a different size. Most annoying is the different sizes of the width.

What you can do to bring them all into the same width is to edit the template region or to copy it to a new one and change some html attributes. Unfortunately every theme has there own unique source code. So you need to find out the right settings yourself. In my example I used the theme Centered - 7 and changed the following definition line under Home > Application Builder >Application #ID# > Shared Components > Edit Region Template > Defintion:

<td align="center" colspan="2">#BODY#</td>

To:

<td align="center" colspan="2" #REGION_ATTRIBUTES#>#BODY#</td>


Next is to edit your regions. Add style="width:600px" at the region attributes.

Here an example: http://apex.oracle.com/pls/otn/f?p=25472:29

Just a tip:
To find out where you need to add the attribute #REGION_ATTRIBUTES# use Firefox with Firebug.

Post Tags: