Submit Your Article Forum Rules

Results 1 to 10 of 10

Thread: CSS table border issue

  1. #1
    Junior Member
    Join Date
    Aug 2003
    Posts
    6

    CSS table border issue

    Help! I can't figure this one out..
    http://www.globalspex.com/boca. (It is still in testing mode)
    Do you see the bottom margin on the top banner that is cutting my circle image in half? For they life of me I can't figure it out. I need to remove the margin or padding that surrounding this table.

    Here is the CSS code:
    /* banner and top left corner image*/
    #banner{
    font-family: Georgia, Times New Roman, Times, serif;
    background-color: #42437A;
    color: #ffffff;
    }
    #banner table {
    margin:0px;
    padding: 0px;
    }
    #banner td{
    background-color: #42437A;
    }
    #banner img {
    margin: 0px;
    padding: 0px;
    background-position: top;
    }

    Here is the table code:
    <div id="banner">
    <table width="830" height="98" border="0" cellspacing="0" cellpadding="0">
    <tr><td>[img]images/logo1.gif[/img][img]images/pic1.jpg[/img] [img]images/pic2.jpg[/img] [img]images/pic3.jpg[/img][img]images/banner.jpg[/img]</td></tr></table>
    </div>

    Can someone offer a solution or tell me what I am doing wrong?

    Thank you!
    Christina Hawkins
    http://www.globalspex.com

  2. #2
    Senior Member SyrenSong's Avatar
    Join Date
    Jul 2003
    Posts
    403
    Hi gx2000.

    Not trying to cause you to give yourself a forehead slap, but you seem to be missing your "banner.jpg" in your source code. Here's what I found on your page:

    Code:
    <div id="banner">
      <table width="830" height="98" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>
            [img]images/logo1.gif[/img]
    
            [img]images/pic1.jpg[/img] 
            [img]images/pic2.jpg[/img] 
            [img]images/pic3.jpg[/img]
            
          </td>
        </tr>
      </table>
    </div>
    My first guess is that you need to fix your code to actually call the image. ;)

    Don't worry, I've done that sort of thing myself. Then felt incredibly silly afterwards. lol!

    If you try breaking up your code, instead of having it in one long line like it currently is, it'll be a lot less confusing when you're trying to resolve a simple problem.

    If you're trying to save space and code-size, remove all the spaces and tabs after you've got the code working properly. That'll save you quite a few headaches. ;)

    HTH!

  3. #3
    Junior Member
    Join Date
    Aug 2003
    Posts
    6
    Thank you SyrenSong for the time you took to help me out, but I do call the image banner.jpg in my code. I don't think you copied the entire code from the source. If I didn't you wouldn't see the top half of the circle and easter island picutre which is the banner.jpg image.

    <div id="banner">
    <table width="830" height="98" border="0" cellspacing="0" cellpadding="0">
    <tr><td>[img]images/logo1.gif[/img]
    [img]images/pic1.jpg[/img] [img]images/pic2.jpg[/img] [img]images/pic3.jpg[/img]
    [img]images/banner.jpg[/img]</td>
    </tr>
    </table></div>

    I created it all on one line b/c Internet Explorer gets buggy if you move the </td> to the next line in your source code and will sometimes create an additional space.

    I am calling the banner from a php file but I see that border on this file as well.

    Help...I've got to figure this thing out.

    Christina Hawkins
    http://www.globalspex.com

  4. #4
    Junior Member
    Join Date
    Aug 2003
    Posts
    6
    Aargh... it was the spaces between each image. I thought I could save just a few kilobytes but it caused the extra height in the table cell. So I removed codes and created "spaces" in the images themselves.

  5. #5
    Senior Member SyrenSong's Avatar
    Join Date
    Jul 2003
    Posts
    403
    I just took another look at your page and the code, both in Mozilla and IE.

    There's no banner.jpg referenced anywhere on the page you've uploaded to your server.

    I also tried to go directly to the image itself (<http://www.globalspex.com/boca/images/banner.jpg.), and the file isn't on the server in that location.

    sorry! :(

    Maybe what you're looking at is the file on your computer, rather than what's on the server.....?

  6. #6
    Junior Member
    Join Date
    Aug 2003
    Posts
    6
    SyrenSong,
    Thank you. I was able to fix the original problem, it was the spaces. When you go to the webpage, the picture to the far right with the Easter Island and the top half of the circle is the banner.jpg image. I've had 3 other folks take a look at it for me and they see the image. Do you?

    Could it be that I am using PHP includes for the top banner code? Could that be reason why it's not showing in the code?

    Christina

  7. #7
    SyrenSong,

    I had a friend that had the same problem, he couldn't see a pic on his site and I could see it. The code for this image completely disapeared as well.

    He finally realised that it was his firewall that was mis configured. Do you use a firewall, I think his was Norton's.

    Leo

  8. #8
    Senior Member SyrenSong's Avatar
    Join Date
    Jul 2003
    Posts
    403
    Good ol' Nortons. I recently installed it and have had several problems cropping up. You could be right, le_gber.

    I'll have to check into it and make a few more changes to the settings. The software's been great about blocking attacks, but I've had several problems in other areas regarding access.

    I'm guessing you see everything just fine, the way gx2000 describes it, le_gber?

  9. #9
    SyrenSong,

    Yes I do see the pic and the code she is talking about

    Leo

  10. #10
    Senior Member SyrenSong's Avatar
    Join Date
    Jul 2003
    Posts
    403
    I just checked the site on another computer, also using Norton. Same problem. Looks like I've got some software to set properly!

    Thanks for the heads up, Leo!

    My apologies for any confusion, Christina!

Similar Threads

  1. Mozilla table border problems!
    By Fingers in forum Graphics & Design Discussion Forum
    Replies: 7
    Last Post: 12-08-2005, 06:53 AM
  2. Table Align to table
    By sysop9999 in forum Graphics & Design Discussion Forum
    Replies: 3
    Last Post: 11-10-2005, 10:00 AM
  3. CSS border issue
    By ADAM Web Design in forum Graphics & Design Discussion Forum
    Replies: 3
    Last Post: 07-21-2005, 10:09 AM
  4. Tech Border
    By WPW_Feedbot in forum Graphics & Design Discussion Forum
    Replies: 0
    Last Post: 12-21-2004, 02:31 PM
  5. Border not following div??
    By teresa77 in forum Graphics & Design Discussion Forum
    Replies: 2
    Last Post: 05-29-2004, 11:16 AM

Posting Permissions

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