yoursurrogategod Posted April 19, 2012 Share Posted April 19, 2012 Hi all, I'm using Zend Framework 1.11.11 and Zend Studio 9.0 to do my development. In my IDE this line was flagged as a warning. If border and cellspacing are deprecated, what can I replace them with? <table border="0" cellspacing="0"> Quote Link to comment Share on other sites More sharing options...
requinix Posted April 19, 2012 Share Posted April 19, 2012 border isn't deprecated. cellspacing can be expressed in CSS with border-spacing: border-spacing: 0px; However you might be looking to "collapse" the borders, for which you'd use border-collapse: collapse; instead. Quote Link to comment Share on other sites More sharing options...
haku Posted April 19, 2012 Share Posted April 19, 2012 Some documents list border as being deprecated, but going to the source, it appears as if it was still valid as of HTML4: http://www.w3.org/TR/html4/struct/tables.html#h-11.3.1 Interestingly enough, it's still valid in HTML5 as well, however it only accepts two values, empty or 1. 1 indicates that there is a border, and empty indicates that there isn't. The actual style of the border should be set in CSS. Quote Link to comment Share on other sites More sharing options...
yoursurrogategod Posted April 19, 2012 Author Share Posted April 19, 2012 Ok, that's a fault on Zend Studio if that's the case. I'll get in touch with their people and ask questions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.