Center page in browser

We are building an ADF Web Fusion application, and we would like our pages to have a fixed width and be centered in the browser, much like cnn.com or weather.com. On cnn.com and on our company website, this behavior is achieved by placing a div tag just inside the body with the property align set to center. However, I can't find a way to do something like this in adf.
I've seen a few people ask similar questions, but I haven't seen a definitive answer yet. Is this functionality available?
I am using JDeveloper 11.1.2.0.0 and the Integrated WLS 10.3.5 on on Windows 7.

<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <af:document title="pglAtTop" id="d1">
      <af:form id="f1">
        <af:panelGroupLayout id="pgl11" layout="scroll" halign="center" styleClass="AFStretchWidth">
          <af:panelGroupLayout id="pgl12" layout="vertical" halign="center"
                               inlineStyle="background-color:Teal; border-color:Fuchsia; border-style:double;width:976px;">
            <af:panelGroupLayout layout="vertical" id="pgl2" valign="top">
              <af:image source="#{resource['images:service_request_banner.gif']}"
                        shortDesc="Allied Service Requests Header Banner" id="i1"/>
              <af:panelGroupLayout id="pgl4" layout="horizontal" halign="end" valign="bottom">
                <af:goButton id="gb1" destination="http://www.google.com" targetFrame="_blank"
                             textAndAccessKey="&amp;Support"/>
                <af:commandButton text="My Profile" id="commandButton1"/>
                <af:commandButton text="Logout" id="cb4"/>
              </af:panelGroupLayout>
            </af:panelGroupLayout>
            <af:panelHeader text="sample header" id="ph1" type="stretch"
             inlineStyle="width:976px;">
              <f:facet name="context">
                <af:panelGroupLayout id="g1" layout="horizontal" halign="end">
                  <af:spacer width="20" height="10" id="s1"/>
                  <af:selectOneChoice value="sample soc" label="for" id="soc1" autoSubmit="true"/>
                </af:panelGroupLayout>
              </f:facet>
              <f:facet name="menuBar"/>
              <f:facet name="toolbar">
                <af:commandButton text="Back" id="cb1"/>
              </f:facet>
              <f:facet name="legend"/>
              <f:facet name="info"/>
              <af:table var="row" rows="5" fetchSize="5" rowBandingInterval="0" filterVisible="false" varStatus="vs"
                        rowSelection="single" id="t1" rendered="true" columnStretching="column:c3">
                <af:column headerText="" id="c1">
                  <f:facet name="filter">
                    <af:inputDate id="id1">
                      <af:convertDateTime/>
                    </af:inputDate>
                  </f:facet>
                  <af:outputText value="samplerow1" id="ot1"/>
                </af:column>
                <af:column headerText="" id="c3">
                  <af:outputText value="samplerow3" id="ot3"/>
                </af:column>
                <af:column id="c4" width="120" sortable="false" headerText="">
                  <af:panelGroupLayout id="pgl1" layout="horizontal">
                    <af:commandButton text="sample button" id="cb2"/>
                    <af:commandButton text="sample button2" id="cb3"/>
                  </af:panelGroupLayout>
                </af:column>
                <af:column filterable="false" sortable="false" headerText="" id="c2">
                  <f:facet name="filter">
                    <af:inputDate id="id2">
                      <af:convertDateTime/>
                    </af:inputDate>
                  </f:facet>
                  <af:outputText value="samplerow1" id="ot2"/>
                </af:column>
              </af:table>
            </af:panelHeader>
          </af:panelGroupLayout>
        </af:panelGroupLayout>
      </af:form>
    </af:document>
  </f:view>
</jsp:root>This is looking pretty good. It would be perfect if the table would stretch to the bottom of the screen. Is there any way to achieve this? or will I have to specify the height?
Thanks so much for your help so far.

Similar Messages

  • How can I center pages for browsers and screen rez

    Hi.
    I purchased an html template web site. Im trying to have the
    pages center themselves depending on the screen , resolution and
    perhaps the type of browser it will be viewed in. Right now it just
    shows up to the right hand side. This goes for all the pages in the
    template.
    here is the link for the site
    Sample page
    Im ok with Dreamweaver, no experience with CSS.
    Thanks

    Asked and answered here almost daily. You can find all the
    info you need
    starting here:
    http://groups.google.com/groups?as_q=center+page&num=10&scoring=r&as_epq=&as_oq=&as_eq=&as _ugroup=macromedia.dreamweaver&as_usubject=&as_uauthors=&lr=&as_drrb=q&as_qdr=&as_mind=1&a s_minm=1&as_miny=1981&as_maxd=21&as_maxm=10&as_maxy=2008&safe=off
    WARNING: This requires CSS code so it's time to step up.
    Without
    understanding HTML & CSS you will be very limited in what
    you can
    accomplish.
    Walt
    "mannsma" <[email protected]> wrote in
    message
    news:gdlo8u$ef$[email protected]..
    > Hi.
    > I purchased a html template web site. Im trying to have
    the pages center
    > depending on the screen , resolution and perhaps the
    type of browser it
    > will be
    > viewed in.
    >
    > here is the link for the site
    >
    > https://filmlesscafe.com
    >
    > Im ok with Dreamweaver, no experience with CSS.
    >
    > Thanks
    >

  • Off-center page possible?

    Is it possible to create a web site in iWeb where the main part of the page is off-center?
    (example - www.starbucks.com)
    All of the templates automatically put the page in the center of the browser window, and I don't even know if it's possible to change that. If anyone knows anything about this, I'd appreciate the advice.

    Changing the alignment of a page is easy!
    Publish iWeb site then open /Sitename/PageName.html in Text Edit. A few lines down in the code right after the <body> tag there are two <div> tags that look like this:
    <div style="text-align: center; ">
    <div style="margin-bottom: 0px; margin-left: auto; margin-right: auto; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word; text-align: left; width: XXXpx; " id="body_content">
    Change the tags so they look like this.  Edit style parameters to taste.
    <div style="margin:left(or right); margin-left(or right):XXXpx">
    <div style="margin-bottom: 0px; margin-top: 0px; overflow: hidden; position: relative; word-wrap: break-word; text-align: left; width: XXXpx; " id="body_content">

  • Firefox won't open after i downloaded a Page Speed browser add-on

    I went to Google Webmaster Central. To check my site performance it asked me to :
    Install the Page Speed browser add-on
    Use Page Speed to evaluate the performance of your pages and get suggestions on how to improve them. Learn more
    Install Page Speed
    Install while using Firefox
    The "Install Page Speed" being https://dl-ssl.google.com/page-speed/current/page-speed.xpi
    It then asked me to restart firefox. I said ok and firefox switched off but never started again. It won't open when i try to start it again.
    I have a lot of saved bookmarks and don't want to loose them. Will this happen if i uninstall and reload firefox or is there a way to get this version working again.

    Try opening Firefox in [[safe mode]], whilst in safe mode you can access the add-ons manager and uninstall the Page Speed Browser extension. Hopefully this will resolve your problem.

  • "Preview Page in Browser" stopped working...

    Hi guys,
    First off, looking forward to seeing what's unveiled at Create Now Live on December, 11th!
    Anyway, here's the Muse bug that just cropped up yesterday as I was working on a niche one-pager site: when I tried "Preview Page in Browser," nothing happened.
    Usually when I'm working in Muse, I already have Firefox open on my screen, and when I hit "Preview Page in Browser," it'll open a new tab with the preview. This time, nada, no new tab, no preview.
    Have no idea if my system settings or anything else has changed since the last time I designed a mini-site in Muse, a few weeks ago, when "Preview in Browser" was working fine. I'm on an (aging) PC laptop, running Windows XP.
    Any ideas what's going on? Thanks again!
    D

    Hello,
    Could you please check if the issue is specific to one website on your computer.
    You can try creating a new test website and check if you are able to preview it in a browser or not.
    If it does not work, please try deleting the AdobeMuse folder from the location :
    Windows 7: C:\Users\your_user_name\AppData\Roaming\
    Windows XP: C:\Documents and Settings\your_user_name\Application Data
    Mac: /Users/your_user_name/Library/Preferences/
    After that please relaunch Adobe Muse and check if you get the preview in Browser feature to work or not.
    Hope this helps.
    Regards,
    Sachin

  • Can no longer backspace to previous web page while browsing?

    Can no longer backspace to previous web page while browsing?

    I used Google and found this, you may find it useful.
    http://hints.macworld.com/article.php?story=20120727025535867

  • Every time I try to access the ASPX pages, the browser doesn't display the pages. Instead, a popup box asks if I want to open or save

    every time I try to access the ASPX pages, the browser doesn't display the pages. Instead, a popup box asks if I want to open or save

    What site is doing this? 99% of the time it is a problem with the headers sent from the web server.

  • Unable to Preview Page in Browser on First Try

    Hello, when I go to File > Preview Page in Browser (Ctrl + Shift + E) it shows the error message above. But when I try again it works. Sometimes it takes 2-3 tries but eventually it works. Why does it not work the first try? Thanks.
    -Kelly

    Hi Kelly,
    Could you please try  some steps given in this thread,
    Adobe Muse - Preview Failed
    Do let me know if you have any question.

  • Account and contact person search in more Work Center pages

    Hi All,
    I have to face the following problem. Currently I am at customer and the customer wants to have four different work centers (broker, cedent, original insured). The work center pages should show the AB SEARCH. In those ABs the links Search Brokers, Search Broker Contacts; Serach Cedent, Search Cedent Contacts etc.)
    I Use the Target IDs MD-BP-SR and MD-CONP-SR for all searches.
    Everything went fine (I checked simultanously in WebUI). After I entered the third ORIGINAL INSURED the AB of all Work Center appeared the same. All had Cedent Accounts, Cedent Contact Person as links in the AB Create. When I make the Cedent links unvisible no Work Center has them in.
    How can I solve this problem? I work on that since two days. Has anyone an idea? Even here in SDN I couldn´t find a solution for that.
    The CRM is a brandnew one? Could it be that the search MD-BP-SR can only be used in one workcenter??
    Thanks to all for your help,
    Martin

    Hi Pieter,
    thx for your answer. AB=Assignment Block. This Search Block.
    I would like to have 4 WC for Cedent, Broker, Original Insured an Prospect (XXX). These WC should have all an AB / Work Center Link Group that includes Search XXX Accounts and Search XXX Contacts. I have an developer here, that would add the role, so that we can search role specific (Roles: Broker Original Insured, Broker etc.). An better idea for that?
    But my problem is, that the WC pages look all the same. Even if I go to WC Prospect, that should incl. the Work Center Linkgroup Create (Link will be Create Prospect) it doesn´t appear, because all work center pages look similar.
    I entered all (LogLingID, WC Link Groups etc.) from scratch, but I compared with standard.
    I would love to help, but it is not really clear to me what you are doing.
    You mention you have 4 workcenters, all with an option to search for accounts and a search for contacts.
    CORRECT.
    How are you planning to differentiate between them all if you use the same target id's (MD-BP-SR and MD-CONP-SR)?
    Is your issue that you changed the description of the links, and they appear the same?
    You also mention 'AB'. What would that be?
    Yes. The Links all have Search Cedent Accounts in every WC Link Group. But why?
    Regards Martin
    I would upload a screenshot or send it, but don´t know how...first time posting a thread.

  • Can not preview HTML pages in browser

    I am unable to preview my HTML pages in a browser eg. safari. firefox etc... before uploading them to my server. I have tried going into preferences and clicking on the preview in browser section and adding a new primary and secondary browser but it will not work. I was able to preview my pages in browser mode fine up until a few days ago when it suddenly stopped working. I am using Mac OS X version 10.5.8, Prosessor 4x2.5 GHz PowerPC G5. Memory 4.5 GB DDR2 SDRAM. I have Dreamweaver CS3. My test server is set to none.

    Hi Murry,
    When I try to preview HTML pages in browser it comes up with a message saying 'Would you like to define a primary browser now?' but when i try this it does not work, it will not recognise the browsers when i add them to the list.
    Corinne

  • Why does my ipod touch 4gen keeps going back to home page when browsing on the apps store

    Why does my Ipod touch 4 generation keeps going back to home page when browsing in the apps store.
    I called apple 5 times today and asked me to restore it 3x the problem still exists. This problem starts to occur yesterday after upgrading to IOS6.
    Apple customer service is not good enough as they cannot fixed the problem or tell me that I can change the unit as I just bought this 2 months ago.

    Because there is a bug in iOS 6 that effects the 4G iPod touch.
    https://discussions.apple.com/thread/4319809?tstart=0

  • Putting the website in the 'center' of the browser

    Hi,
    This is probably a stupid question, but I'm new to the
    Flash/Dreamweaver/Fireworks suite of products.
    In creating a website that is, for example, 800 by 500
    pixels, how can I place that website 'frame' in the center of the
    browser so that somebody in 1024x768 will see the website in the
    center (as opposed to the top left corner)?
    And a related question - how can I modify the background
    color for the empty space not taken up by the designed website?
    TIA,
    Ren

    Put your site inside a div with this css:
    #container {
    width: 800px; (or whatever width you want)
    margin: 0 auto;
    Set your background color in css:
    Body {
    margin: 0;
    padding: 0;
    background: #CCC; (or whatever solid color you want)
    > An example to possibly clear this up is:
    >
    >
    http://www.silksoymilk.com/
    - how did they do that? the website is in the
    > center, and they have a gradient in the sides? (the
    gradient is an image, I
    > don't need that, just a solid color)
    >

  • Why doesn't People button appear in Member Center page

    Hi, i have purchase Apple Developer Program. I'm Agent Admin, but i cannot create my team becouse People button in Member Center page doesn't appear how userguide explain. Can you help me???

    SOLVED. Must be a company, not a individual developer. The answer is here: https://developer.apple.com/support/ios/account-management.html

  • Center page spread

    I have been using Pages to produce a school newsletter. I would like to know if its possible to do a Center page spread. By that I mean have the middle page of the newsletter spread over the two pages. A photo or text that has half on one side and the rest on the other page.
    Thanks
    dave

    Great question!
    I just tried it, and using one image, it didn't work. It left the second half 'blank', with only the placeholder outline. So - no luck there.
    BUT! If you duplicate the image and then drag it into line, you can cheat it into looking like a double-page spread.
    As for text, I might have misread your question, but you can use the *blue arrow connectors on the text boxes* to naturally have text flow across pages.
    Alternately, like for a title, you might try the cheat method for images.
    Let me know if this works for you.

  • New page in browser window on event trigger

    Hello Experts,
    I have created webdynpro abap application which generates pdf  interactive forms on pressing a button in UI. I want pdf to be generated in the new page of browser instead of the current page.
    Any suggestions how can I implement this?
    Thanks & Regards,
    Viral

    Hello Viral,
    Anky is helping you to open a new browser window tith 'Google' website.
    In your case, could you do the below steps:-
    Step1 : create a new window, add your view containing Adobe interactive form into this window.
    Step 2: Open this window on button action event. Following snippet of code might be helpful for you.
    DATA lo_nd_tabnode TYPE REF TO if_wd_context_node.
    lo_nd_tabnode = wd_context->get_child_node( Name = '<Node_Name>' ).
    data lo_window_manager type ref to if_wd_window_manager.
    data lo_api_component  type ref to if_wd_component.
    data lo_window         type ref to if_wd_window.
    lo_api_component  = wd_this->wd_get_api( ).
    lo_window_manager = lo_api_component->get_window_manager( ).
    lo_window         = lo_window_manager->create_window(
                       window_name            = '<Window_Name>'
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                       button_kind            = if_wd_window=>co_buttons_ok
                       message_type           = if_wd_window=>co_msg_type_none
                       default_button         = if_wd_window=>co_button_ok
    lo_window->open( ).
    Explanation:
    Line 1 & 2. A reference to the context node is created This context node(Node_Name) which is mapped to the UI elemenents on the adobe interactive form.
    Line 3,4 & 5: reference to the window manager, component and window are created(all those starting with 'if' stands for interfaces, if you want details about these interfaces, goto transaction SE24 and insert their name and search for parameters and methods.- putting all these details as you said you are new to Wd ABAP).
    rest of the lines: creating window API and assigning mandatory parameters to this window.
    last line: opening window whenever this particular(wd window) is getting called.
    for more details goto SE 24 search with 'if_wd_window".
    Cheers,
    Jakes.

Maybe you are looking for

  • LMS3.2 ciscoview 6.1.9 not able to install package Rtr2900.cv50.v2-0

    Hi , I m not able to install package Rtr2900.cv50.v2-0 for cisco2951 router in cisco view  .cisco2900 router is supported on LMS3.2 . Tried online as well as manual method , via - Common Services --->Software Center > Device Update. it says "there is

  • Why does Mail completely not work?

    I've been using Mail ever since I got my macbook. Got it linked up with both my hotmail and gmail accounts so I have at least a couple thousand emails on it. And now when I open it, its just not working at all. It feebly tries to retrieve mail.. When

  • Emailing or printing to pdf a single worksheet from numbers for ipad.

    I use Numbers for my estimating program for my business and would like to be able to send my proposals directly from Numbers.  Is there a way to email only one worksheet from a numbers file?  Is there a way to print to a pdf from the print screen?

  • IDOC field schema definition cannot be loaded in the configuration

    hi experts, i'm having an issue in the configuration side of the xi server. when i'm trying to access a particular field in an IDOC in the condition editor it is givin me the message the 'schema definition of the corresponding field's parent segment

  • How to download/save report from server machine to client machine?

    Hello All This is San, My problem is that i need to save pdf/html report in client machine while report running on client machine for this i have set destype as file and desformat as pdf/html. It is running and save automatically while report run on