Results 1 to 3 of 3

Thread: Table background images connecting together

  1. #1
    Join Date
    May 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Table background images connecting together

    Hello I am working on a project for a class im taking, and I am having a little trouble with tables.

    Here is the exact page I'm having problems with: http://oxygen.fvcc.edu/~c0098338/finalwebsite/main.htm

    If you take a look there, you will see that the guitarist on the lefts head does not connect to his body. This is where the top table (my banner) touches the left table (soon to be a navigation bar). It is only off by about 4 pixels, and I know the image sizes are correct.

    I beleive it is just something dealing with how the tables are separated from each other. The images are set as background images for the table, and not just inserted in to the table itself.

    Does anyone have any ideas on how to connect the two, or know a modification in the html code I could make?

    thanks

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You need to collapse the borders on your table:

    HTML Code:
    <table style="border-collapse:collapse;">
    You can put it in your style section like so:

    Code:
    table {
    border-collapse:collapse;
    }
    or even select the table by class or id (example with class):

    Code:
    .collapsed, .collapse table {
    border-collapse:collapse;
    }
    Then your table tag could look like so:

    HTML Code:
    <table class="collapsed">
    This is actually the most correct way, though they all work.
    Last edited by jscheuer1; 05-11-2006 at 09:28 PM.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks! Works like a charm! You can refresh the page now to see its current look if you are curious to see.

    I went with your suggestion of:

    Code:
    table {
    border-collapse:collapse;
    }
    .. and put that into my styles.css.

    So now my tables automatically inherit the border collapse feature.

    Thanks again for the help!

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
  •