New topic: Can a webpage be centered in the browser window?
<http://forums.realsoftware.com/viewtopic.php?t=45594> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message dgdavidge Post subject: Can a webpage be centered in the browser window?Posted: Fri Oct 12, 2012 4:24 pm Joined: Fri Jun 02, 2006 1:43 pm Posts: 158 Location: Santa Ynez, CA I have been trying to make my app look better by centering the webpage in the browser window. In most cases, the browser window is much wider than the webpage. I have tried using two pagesources to create a table that I hoped would hold the webpage in one of the table cells. The table border shows that the top of the browser window but it is only about one line high and the webpage is definitely not inside it. I noticed in the language reference that pagesource cannot be used with a WebContainer. My webpage has two webcontainers (only one active at a time), but the pagesources are objects of the webpage. Is my webcontainer preventing the pagesource from working properly? Is there another way to center the webpage or is having it anchored to the upper left corner the only option? My BeforeContent pagesource is<STYLE type="text/css"> @media print { PrintHidden { display: none; } } </style> <table width=100% border=1><tr><td>a</td><td width=1000> and my AfterContent is </td><td>b</td><tr></table> The Style portion of the pagesource was already there. I only added the table tags. My webpage is 1000 pixels wide. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
