Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. How do you get rid of table gaps? [modified]

How do you get rid of table gaps? [modified]

Scheduled Pinned Locked Moved Web Development
htmlquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RachelSo
    wrote on last edited by
    #1

    I have some table gaps that I can't get rid of and it's driving me insane. Can someone shed some light on why this is happening? I've simplified my code to just a boarder and nothing else:

    <table width="1160" height="600" border="0" align="left" cellpadding="0" cellspacing="0" id="Table_blah">
    <tr><td rowspan ="1" colspan="15"><img src="images/HorSeparator.jpg" width="1160" height="16" alt=""></td></tr>
    <tr><td rowspan="14"><img src="images/VertSeparator.jpg" alt="" width="11" height="584"></td></tr>
    </table>

    SOLVED: Turns out the gap was caused by my opening tags:

    <!DOCTYPE html>
    <html lang="en">

    Does anyone know how they can cause table gaps :confused:

    modified on Sunday, January 30, 2011 9:32 PM

    L 1 Reply Last reply
    0
    • R RachelSo

      I have some table gaps that I can't get rid of and it's driving me insane. Can someone shed some light on why this is happening? I've simplified my code to just a boarder and nothing else:

      <table width="1160" height="600" border="0" align="left" cellpadding="0" cellspacing="0" id="Table_blah">
      <tr><td rowspan ="1" colspan="15"><img src="images/HorSeparator.jpg" width="1160" height="16" alt=""></td></tr>
      <tr><td rowspan="14"><img src="images/VertSeparator.jpg" alt="" width="11" height="584"></td></tr>
      </table>

      SOLVED: Turns out the gap was caused by my opening tags:

      <!DOCTYPE html>
      <html lang="en">

      Does anyone know how they can cause table gaps :confused:

      modified on Sunday, January 30, 2011 9:32 PM

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I took your markup, made a couple of images to match yours and took a look. I don't see any gaps. Perhaps you have a style sheet that's affecting things? If that's not the case, maybe you could describe what you're seeing - that may help diagnose the problem. Cheers, Drew.

      R 1 Reply Last reply
      0
      • L Lost User

        I took your markup, made a couple of images to match yours and took a look. I don't see any gaps. Perhaps you have a style sheet that's affecting things? If that's not the case, maybe you could describe what you're seeing - that may help diagnose the problem. Cheers, Drew.

        R Offline
        R Offline
        RachelSo
        wrote on last edited by
        #3

        Thanks for the reply My style sheet is very simple, I doubt that is affecting it, but I'll look into it. Here's a snapshot of Explorers' and Chromes' rendering of my table: http://tinypic.com/r/2guei2s/7[^] It dosent look like much but that 3 pixle gap on the left really messes things up. Thanks for the input Drew. If you didnt suggest that the problem could be outside of the table I wouldn't of figured out that the problem was caused by my opening tags

        <!DOCTYPE html><html lang="en">

        modified on Sunday, January 30, 2011 10:46 PM

        L 1 Reply Last reply
        0
        • R RachelSo

          Thanks for the reply My style sheet is very simple, I doubt that is affecting it, but I'll look into it. Here's a snapshot of Explorers' and Chromes' rendering of my table: http://tinypic.com/r/2guei2s/7[^] It dosent look like much but that 3 pixle gap on the left really messes things up. Thanks for the input Drew. If you didnt suggest that the problem could be outside of the table I wouldn't of figured out that the problem was caused by my opening tags

          <!DOCTYPE html><html lang="en">

          modified on Sunday, January 30, 2011 10:46 PM

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Glad I could help! Cheers, Drew.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups