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 5 of 5
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,457
    Thanks
    15
    Thanked 0 Times in 0 Posts

    border collpaseof table

    I have the following code

    .tholidays table{
    padding:0px;
    float:left;
    border: thin solid #aeaeae;
    border-collapse:collapse;
    }
    .tholidays td{
    padding:0px;
    border: thin solid #aeaeae;
    border-collapse:collapse;

    }

    but the table is still showing as a non collpsable table(meaning i see spaces between the table lines). what am i doing wrong?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Attributes?

    Any presentational attributes still left in the markup that interfere with your styles? Also, IE6 has issues with collapsing borders.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,457
    Thanks
    15
    Thanked 0 Times in 0 Posts
    i don't think so -- wouldnt' this overwrite a general table css definition anyway?

  • #4
    Senior Coder Arbitrator's Avatar
    Join Date
    Mar 2006
    Location
    Splendora, Texas, United States of America
    Posts
    3,300
    Thanks
    28
    Thanked 275 Times in 269 Posts
    I just tested your CSS rules and they seem to work fine in Firefox 2 and Internet Explorer versions 6 and 7. A few notes though: The border-collapse property only works on table elements, so there’s no reason to apply it to table cells. You can also drop the unit identifier (i.e., px) on values of zero.
    For every complex problem, there is an answer that is clear, simple, and wrong.

  • #5
    Senior Coder
    Join Date
    May 2004
    Posts
    1,457
    Thanks
    15
    Thanked 0 Times in 0 Posts
    on firefox 1.5.08 it is not working properlyl.


  •  

    Posting Permissions

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