Master Page, Centered Viewport

  1. #1

    Master Page, Centered Viewport



    I can't seem to find an example of how to center (or include) a viewport inside its parent container when the parent is a div.

    so for example suppose I have a div that is 800px wide and currently centered within the browser. Then I add a viewport inside that div. Any content I put in the viewport seems to expand and take up the entire browser window when I really want it to observe the parents width.

    It almost seems as if everything is being rendered with absolute positioning. Is there a good example of centering things within the browser window? Maybe with a different ext container control?

    Thanks in advance
  2. #2

    RE: Master Page, Centered Viewport

    It seems as if the only way to make this work the way I want it to is to use a combination of viewports, columnlayout, panels and borderlayout controls. It seems like there should be an easier way to inherit a non ext parent css values (in other words not render with absolute positioning).

    I got it working, its just a load more markup than expected. Of course this may be my infamiliarity with the control suite. I guess when I have more time I'll revisit this and try to trim down the number of controls needed to get this effect.

Similar Threads

  1. Replies: 1
    Last Post: Sep 08, 2013, 5:10 AM
  2. [CLOSED] Master Page and Viewport
    By majestic in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Sep 04, 2010, 4:21 AM
  3. [CLOSED] [1.0] Master Page Viewport "comp is undefined"
    By Labyrinth in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 09, 2010, 6:38 AM
  4. Replies: 2
    Last Post: May 05, 2010, 10:23 AM
  5. Replies: 7
    Last Post: Jul 19, 2008, 6:59 AM

Posting Permissions