Forum Stats

  • 3,874,546 Users
  • 2,266,752 Discussions
  • 7,911,885 Comments

Discussions

Button placement on a APEX application page.

V Rickert
V Rickert Member Posts: 165
edited Mar 7, 2013 12:54PM in APEX Discussions
How do I center a button within a region? I tried 'align="center"' but this seemed to be ignored. Any hints would be appreciated. The button is at the left of the screen. Also, what are the 'display points' (Page Template Region Position 1-8) used for, and why is there a specification for column position of 1-9? Could these be attributes that will allow my button to be centered on the window instead of on the left?
Thank you!
Tagged:

Best Answer

  • Howard (... in Training)
    Howard (... in Training) Member Posts: 905
    edited Mar 6, 2013 6:06PM Answer ✓
    Hi,

    Here's an old thread where someone centered a button in a sidebar region. {thread:id=999875}.
    <style type="text/css">
    .t15SideBarRegion td td {text-align:center}
    </style>
    Does that give you anything to work with?

    Oh, and also. {thread:id=590958}

    Howard

Answers

  • Howard (... in Training)
    Howard (... in Training) Member Posts: 905
    edited Mar 6, 2013 6:06PM Answer ✓
    Hi,

    Here's an old thread where someone centered a button in a sidebar region. {thread:id=999875}.
    <style type="text/css">
    .t15SideBarRegion td td {text-align:center}
    </style>
    Does that give you anything to work with?

    Oh, and also. {thread:id=590958}

    Howard
  • V Rickert
    V Rickert Member Posts: 165
    OK! Great! I will check this out. Thanks!
  • V Rickert
    V Rickert Member Posts: 165
    YES! This worked! I had to make a copy of the region template, add an extra line for the button, and then associate my button region with the new modified template! It worked!
    Here is the code:

    <tbody id="#REGION_STATIC_ID#_body">
    <tr><td class="t20ButtonHolder">#CLOSE##PREVIOUS##NEXT##DELETE##EDIT##CHANGE##CREATE##EXPAND##COPY##HELP#</td></tr>
    <tr>
    <td align="left">#CREATE2#</td>
    </tr>
    <tr><td align="center" class="t20RegionBody">#BODY#</td></tr>
    </tbody>

    Thanks for your help and pointing me into the right direction!
This discussion has been closed.