Search
 
SCRIPT & CODE EXAMPLE
 

CSS

Set table cellpadding and cellspacing in CSS

td { 
    padding: 10px;  /* cellpadding */
}

table { 
    border-spacing: 10px;   /* cell spacing */
    border-collapse: separate;
}
Comment

Set cellpadding and cellspacing in CSS?

For controlling "cellpadding" in CSS, you can simply use padding on table cells. E.g. for 10px of "cellpadding":

td { 
    padding: 10px;
}
For "cellspacing", you can apply the border-spacing CSS property to your table. E.g. for 10px of "cellspacing":

table { 
    border-spacing: 10px;
    border-collapse: separate;
}
This property will eve
Comment

PREVIOUS NEXT
Code Example
Css :: onclick url 
Css :: how to show ... after some long chars js html h1 
Css :: target css by form name 
Css :: img position css 
Css :: restrict flex items in a row 
Css :: how to give linear transprerancyon background image 
Css :: import maxcdn.bootstrapcdn.com not in index.html in specific component file 
Css :: background color transparent 
Css :: anchor tag taking up all the width of the page 
Css :: import image css 
Css :: how to serve css through go 
Css :: onclick change visibility 
Css :: space between li css 
Css :: how to remove underline from list item in html 
Css :: secondline ellipsis 
Css :: html5 video hide progress bar 
Css :: li only showing first bullet 
Css :: change bot page background top.gg 
Css :: media query for mobile min and max width 
Css :: estilos de scroll css 
Css :: center with flex 
Css :: get into a Docker container bash 
Css :: css clip text 
Css :: scss for loop nth child 
Css :: convert image in rounshape in css 
Css :: Scroll background still 
Css :: css animation infinite loop 
Css :: css lighten function 
Css :: mat-progress-bar just dots 
Css :: row reverse grid 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =