How do I apply only horizontal cell spacing to a HTML table? -


i found out need use cellspacing attribute in table, wondering if work horizontally. don't want vertically spread out, messes layout of entire page.

a better way setting cellspacing="10" use css. can use following css target table's cell spacing.

table {   border-spacing: 10px 0; } 

the first value specifies horizontal spacing, , second value specifies vertical spacing.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -