Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Location
    PA
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    window.open help-spacing issue

    I have a page that I am coding that when the calculate button is clicked, a new window opens with a table filled in with the calculation. My problem is that when this new window opens, there is a lot of spacing to the left and right of the table. How can I get rid of all this spacing and have just the table show up in the window? Any help would be greatly appreciated. Thanks.
    Last edited by purpleCraze; 08-18-2005 at 05:58 PM.

  • #2
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    in your popup page:
    Code:
    <script type="text/css">
    body { margin: 0; }
    table { width: 100% }
    </script>
    Hope this helps

    m_n
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper

  • #3
    New to the CF scene
    Join Date
    Aug 2005
    Location
    PA
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I put this in, but it didn't do anything. Should this be put at the top or the bottom? I put it at the top and it didn't do anything. Also, no matter what I put the width of the window at, it spacing on either side of the table stays there.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •