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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.