JustJill54 Posted May 16, 2013 Share Posted May 16, 2013 I have a table with two columns and three rows (6 cells). In each cell, I have a "header" and then a list of links. This list can vary from 1 link to 5+ and is subject to change. The client does not like how much white space there is between the the last item in the list, and the next header. I haven't set the cellpadding or cellspacing attributes, so I'd assume that they are 0 since not specified. The attribute that would work perfectly for my solution- cell padding, does not support negative values. :-( Does anyone else have any ideas? Many Thanks,Jg Link to comment Share on other sites More sharing options...
jeffman Posted May 16, 2013 Share Posted May 16, 2013 HTML5 does not support cell-padding or cell-spacing. The CSS padding property is supported, and browsers often set a positive default value for that. Changing it might help. You should also look at table specific CSS properties. border-collapse might be useful here. Link to comment Share on other sites More sharing options...
dsonesuk Posted May 16, 2013 Share Posted May 16, 2013 By default table cells have preset cellspacing and cellpadding, cellspacing can be controlled through css using border-spacing:0; border-spacing: expression(cellSpacing=0); /*for older IE versions*/ 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