I have a 4x6 data table with 100% width and a rather large (18px) font. I would like to add a colored border around certain cells as that cell's data is "checked off."
I have the process down using JSF and CSS. My CSS is pretty basic, but effective: { border-top: 3px solid green; border-left: 3px solid green; border-bottom: 3px solid green; background-color: #ccffcc; }
What I would like to do is maintain the height of the cell after the 3px borders are implemented. Today, each highlighted row can add 6px -- stretching the table and pushing things off of the bottom of the page. So, my question is: how can I programmatically add this border without changing the height of the rows / cells of my table?
I have tried making a border of the same background color by default on each cell, but with my row colors this won't work. I've also tried padding: -3px; -- which didn't work for me, either. Does anyone have any suggestions for me?
Thanks.
I have the process down using JSF and CSS. My CSS is pretty basic, but effective: { border-top: 3px solid green; border-left: 3px solid green; border-bottom: 3px solid green; background-color: #ccffcc; }
What I would like to do is maintain the height of the cell after the 3px borders are implemented. Today, each highlighted row can add 6px -- stretching the table and pushing things off of the bottom of the page. So, my question is: how can I programmatically add this border without changing the height of the rows / cells of my table?
I have tried making a border of the same background color by default on each cell, but with my row colors this won't work. I've also tried padding: -3px; -- which didn't work for me, either. Does anyone have any suggestions for me?
Thanks.