mlitch Posted August 14, 2015 Share Posted August 14, 2015 My goal seems simple: a dark green background to my table with lines alternating with a lighter green background. The problem is that I can't get rid of the areas to the left and right of each <td> where the dark green is bleeding through. I've tried setting the left/right border property to 0, the left/right margin property to 0, the left/right border property to 0; the border color to the lighter green—all with no results. The only thing that works is to use "cellpadding='0' cellspacing='0'" with the <table> tag, but this also affects the vertical spacing, which I don't want to make any more compact. I can't figure out what I'm missing here. Thanks. Link to comment Share on other sites More sharing options...
davej Posted August 14, 2015 Share Posted August 14, 2015 Is any other element inside the td? Link to comment Share on other sites More sharing options...
Ingolme Posted August 14, 2015 Share Posted August 14, 2015 You can use border-collapse on the table I don't recommend having empty <td>s there just for spacing. If you want spacing use padding or margin. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now