SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Aug 2002
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Table width set to 1px but not displayed as 1px

    Hey,
    I have a rather annoying problem with my site design and I would be greatful for any help...

    I have set a 1px wide table dividing my two content columns but when I view the page the table is at least 3px wide. What can possibly be the problem? To see what I mean visit here

    Thank you in advance,

    Cheers
    Henry

  2. #2
    SitePoint Evangelist
    Join Date
    Jan 2002
    Posts
    420
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    instead of this
    Code:
    <td width="1" bgcolor="#CCCCCC">&nbsp;</td>
    put a 1px spacer in like

    Code:
    <td width="1" bgcolor="#CCCCCC"><img src="spacer.gif" height="1" width="1" /></td>
    also what you can do if you dont want the spacer image is make the text in the cell 1px size with CSS

    Code:
    font-size: 1px;
    Wavelan

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if his stuff didnt work, try replacing this:
    Code:
    <td width="1" bgcolor="#CCCCCC"> </td>
    with:
    Code:
    <td width="1" bgcolor="#CCCCCC"><br></td>
    InQuE

  4. #4
    SitePoint Zealot
    Join Date
    Jan 2002
    Posts
    178
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    haha i just did this cause i was foolin around, i wanted to tell you to make a .gif 1x1 pixel, transparent image, but this works just fine:
    Code:
    <td width="1" bgcolor="#CCCCCC" valign="top" rowspan=3><img src="spacer.gif" width=1 height=100%></td>
    at first i was like 'it works..good.' then i looked and i was like..oh..wait..i never uploaded that..THATS NOT EVEN MY WEBSITE. WHAA!? ok well, it worked.
    InQuE

  5. #5
    SitePoint Member
    Join Date
    Aug 2002
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers for help guys worked perfectly

    Thanks,
    Henry


Bookmarks

Posting Permissions

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