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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to make a table truly fit 100% the screen?

    Hi everyone, I just found these forums and I thought maybe someone could help me out on this one, how to make a table truly fit 100% the screen? cuz when you put width=100% it doesn really fill the screen completly, it looks like this (1) and I want it to look like in the second one.




  • #2
    Regular Coder logictrap's Avatar
    Join Date
    Apr 2008
    Posts
    155
    Thanks
    11
    Thanked 3 Times in 3 Posts
    Try setting the margins and padding for <body> & <html> to 0.

    Also set the doctype to xhtml transitional.

    Make sure the table cell spacing is set to 0.
    Last edited by logictrap; 05-11-2008 at 05:08 AM. Reason: additonal info

    Which came first - the chicken or the egg? The egg... [ticket closed]
    If a tree falls... does it make a sound? Yes.............. [ticket closed]

  • #3
    New to the CF scene
    Join Date
    May 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I tried what you told me but I might've done it wrong or something.

    Could you like post the code here so I can paste it in FrontPage and see how it works? thnx

  • #4
    Regular Coder
    Join Date
    Sep 2006
    Posts
    216
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Try adding this to the body tag.

    Code:
    <body LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>

  • #5
    New to the CF scene
    Join Date
    May 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    OMG thanks, you're my hero mate.

  • #6
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,274
    Thanks
    28
    Thanked 271 Times in 265 Posts
    Quote Originally Posted by alex57 View Post
    Try adding this to the body tag.

    Code:
    <body LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
    It would be better practice to use CSS instead of non‐standard HTML attributes. For example, you might use an embedded style sheet like the one shown below.

    Code:
    <style type="text/css">
    	body { margin: 0; }
    </style>
    For every complex problem, there is an answer that is clear, simple, and wrong.


  •  

    Posting Permissions

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