Answers for "styling html tables"

CSS
11

table border css

table, th, td {
  border: 1px solid black;
}
Posted by: Guest on April-14-2020
1

basic css table

table, td, th {
  border: 1px solid black;
}

table {
  border-collapse: collapse;
}
Posted by: Guest on June-17-2021
0

html table custom

.demotbl th{
 
padding:15px;
 
color:#fff;
 
text-shadow:1px 1px 1px #568F23;
 
border-bottom:3px solid #9ED929;
 
background-color:#9DD929;
 
background:-webkit-gradient(
 
linear,
 
left bottom,
 
left top,
 
color-stop(0.02, rgb(123,192,67)),
 
color-stop(0.51, rgb(139,198,66)),
 
color-stop(0.87, rgb(158,217,41))
 
);
 
background: -moz-linear-gradient(
 
center bottom,
 
rgb(123,192,67) 3%,
 
rgb(139,198,66) 52%,
 
rgb(158,217,41) 88%
 
);
 
-webkit-border-top-left-radius:5px;
 
-webkit-border-top-right-radius:5px;
 
-moz-border-radius:5px 5px 0px 0px;
 
border-top-left-radius:5px;
 
border-top-right-radius:5px;
 
}
Posted by: Guest on October-13-2021

Browse Popular Code Answers by Language