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 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2006
    Posts
    44
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Get rid of extra space between table and paragraph?

    Why is there extra space coming up between my table and my paragraph? I want the paragraph below to appear slightly higher than it is. I need an "anti-<br>" of sorts... help!

    Code:
    <table border="0" cellspacing="0" cellpadding="0">
     <tr><td>
       <ul>   <li>blah blah</li>   </ul>                
      </td></tr>
    </table>
    
    <!-- too much space is appearing here.. like 2 blank lines instead of 1.-->
    
    <p>Blah blah blah.</p>

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,748
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Zero out the margins on p, table and everything else with this bit of CSS:

    Code:
    * {
    margin: 0;
    padding: 0;
    }
    That will probably do it.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Posting Permissions

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