limitphp Posted February 23, 2009 Share Posted February 23, 2009 If I want to have borders in tables that are 1 px in width: - if I put style='border: 1px solid' in the table tag, it'll just put a border around the whole table, but not individual cells. - if I put style='border: 1 px solid" in the td tags, it'll give me a border for each individual cell, but it will double up where the cells meet. In other words, in between two cells it will have a border width of 2px. Is there an easy way to get 1px borders for tables? thanks Quote Link to comment Share on other sites More sharing options...
Goafer Posted February 23, 2009 Share Posted February 23, 2009 this might sound too simple but can you not just write table, tr, td { border: solid; } I think that if you don't specify the px value it won't overlap? Quote Link to comment Share on other sites More sharing options...
limitphp Posted February 24, 2009 Author Share Posted February 24, 2009 this might sound too simple but can you not just write table, tr, td { border: solid; } I think that if you don't specify the px value it won't overlap? Unfortunately that did not work. It made the borders really thick. Quote Link to comment Share on other sites More sharing options...
jcombs_31 Posted February 24, 2009 Share Posted February 24, 2009 If you have no cell spacing then just apply your borders to the bottom/right and remove the right border from the main table. Quote Link to comment Share on other sites More sharing options...
limitphp Posted February 24, 2009 Author Share Posted February 24, 2009 If you have no cell spacing then just apply your borders to the bottom/right and remove the right border from the main table. looks like that is what I had to do.... just thought maybe, they would let you declare the border: 1 px and that would take care of it without doubling up on adjacent borders, but I guess not. I read somewhere that border-collapse would do it, but that didn't work in firefox. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.