unwanted spaces

Posted on 2005-05-04
Last Modified: 2010-04-03

I am using all tables. When I use a table of, say 4 rows by 2 columns, Say i put my header in the first row, my horizontal menu in the 2nd, and some text and pictures in row 3. It looks good in IE6 but in Mozilla or Netscape there is a big gap betwen the header, menu, and 3rd row.

How do I get no gaps or very small ones that are consistent in all 3 browsers?

Question by:weikelbob
    LVL 7

    Assisted Solution

    You need to make sure your tables are like this:
    <table width="724" border="0" cellpadding="0" cellspacing="0">

    and put this in the head section:
    <style TYPE="text/css">
    BODY {margin: 0}


    LVL 12

    Accepted Solution

    Why? i mean why use tables anyway?

    CSS will give you more control over how pages are displayed.

    With CSS, you can create style sheets that define how different elements, such as headers and you menu, appear. These style sheets can then be applied to any Web page.

    the error between broswers with tables can be fixed in your code, but really despite what people say tables were never intended to be used in the way your using them. The more table elements you use the more problems your going to encounter... well that’s always been mine experience.

    LVL 7

    Author Comment

    Both of you guys are a big help. Thank you.

    LVL 7

    Expert Comment

    Glad to help Bob,



    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    2 containers on one webpage 4 245
    div id bookmark tag not working in Firefox 15 554
    thumbnails in content 11 290
    Adobe Indesign CS6 4 57
    Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
    This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now