Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>That is a great example of someone missing the whole point of avoiding the use of tables for layout. The primary problem with using tables for layout is that it makes it very difficult and tedious to change anything on a site wide scale later.</p> <p>By putting the CSS rules inside the HTML, they are combining the inflexibility of tables with dodgy and repetitive CSS. To top it all off, they are misusing javascript to recreate functionality that already exists in tables.</p> <p>There's not simple or "correct" answer to this question. Without knowing the specifics of your situation, all I can do is lay out a few basics:</p> <ul> <li>Less code is almost always better.</li> <li>If you find yourself trying to replicate table behaviour using css (or especially javascript) you may want to just use tables.</li> <li>Less code is almost always better.</li> <li>If you find yourself nesting tables inside of other tables, there's likely a better way to accomplish your goal.</li> <li>Less code is almost always better.</li> <li>Don't be afraid to change your design a bit if it lets you simplify your code a lot.</li> </ul> <p>The truth is that there are no magic bullets. There are tons of resources out there, but as with any worthwhile pursuit it takes time and dedication. Using a tool that hides the complexity may help in the short term, just be aware that you no longer have control of the trade-offs being made on your behalf behind the scenes.</p> <p>A few places to start:</p> <ul> <li><a href="http://www.456bereastreet.com/archive/200410/bring_on_the_tables/" rel="nofollow noreferrer">http://www.456bereastreet.com/archive/200410/bring_on_the_tables/</a></li> <li><a href="http://www.alistapart.com/topics/code/css/" rel="nofollow noreferrer">http://www.alistapart.com/topics/code/css/</a></li> <li><a href="http://getfirebug.com/" rel="nofollow noreferrer">http://getfirebug.com/</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload