Table to always leave 10px and fill popup

I have a bunch of edit forms that are popped up on a click event

This is an Intranet Web App

My master CSS page has a body style with a light blue background

The structure of my popup aspx pages is

             <table cellpadding="0" cellspacing="0" border="0" style="background-color:white;">

Here's my problem...

I want my popup so that no matter the popup window size (IE and Firefox)...100 x 100 or 1200 x 800....
I want my  white background table to fill 100% of the window height AND width with a 10px blue "body" margin around the table.

Also...the overflow needs to be hidden so that no scrollbars appear
Larry Bristersr. DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Take a look at the jQuery UI dialog:

I've used it plenty of times and it's incredibly easy to configure and style.
Larry Bristersr. DeveloperAuthor Commented:
This has to be done with styles if at all possible.

We're using Telerik RadControls and the RadWindow Manager

When the radWindow is invoked, it pops up the aspx page with the declared (RadWindow) width and height.

I need the aspx page itself to have the formatting applied that I requested in my post.

David S.Commented:
Try this. (You don't need those attributes on the <table>.)
/* these styles won't fully work in IE versions before 8 */
html, body, form, form>div:first-child, form>div>table {
  height: 100%;
  margin: 0;
  padding: 0;
body {
  padding: 10px;
  background: blue;
form>div>table {
  background: #fff;
  width: 100%;
  border: 0 none;
  border-spacing: 0;
  border-collapse: collapse;
form>div>table th,
form>div>table td {
  padding: 0;

Open in new window

> Also...the overflow needs to be hidden so that no scrollbars appear

Are you sure you want to do that? What happens when someone increases the font-size, zooms the page, or resizes the browser window?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

The first question is how are you creating and calling the popup window?  Are you creating a lightbox or an actual new browser windows?

If using a simple JavaScript call to create a new window, controling size and scrollbars is easy;

<script type="text/javascript">
function open_win()
{"popup.asp","_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=yes, width=100, height=100");

Call it like this;

<input type="button" value="Open Window" onclick="open_win()">

After you call the popup page, use standard CSS properties to create a white page with a blue margin;

      <style type="text/css">
body {
      background-color: #0000cd;
      margin: 10px 10px 10px 10px;
table {
      background-color: white;

<table cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">
      <td>test popup</td>
Or perhaps you are looking for a better looking example that doesn't use a browser window at all, only jQuery.  I have used ColorBox, ( before for what you are doing, it will load an external page, or you can embed the code into a <div> tag and call it internally.
Larry Bristersr. DeveloperAuthor Commented:
Thanks...will do that with ID and # leader
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.