Jump to content

how to create a spacing in a table?


smiling_flower
 Share

Recommended Posts

You can make the <td> (cell) have padding or widths to them so you can separate the text from being so close to each other.

<style type="text/css">td {  padding: 4px; /* adds 4 pixels inside all <td> cells */}</style>

You can also use width: 20%; for a width.http://www.w3schools.com/css/css_padding.asphttp://www.w3schools.com/css/pr_dim_width.asp

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...