Jump to content

CSS Border Question for Tables


limitphp

Recommended Posts

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/146573-css-border-question-for-tables/
Share on other sites

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.