Search
 
SCRIPT & CODE EXAMPLE
 

CSS

table with border in html

<table border="2" style="border-collapse:collapse;">
    <tbody>
		<tr>
			<td>123</td>
			<td>123</td>
			<td>123</td>
        </tr>
	</tbody>
</table>
Comment

CSS Table Borders

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

add border to table css

table, th, td {
    width: 20%;
    margin: auto;
    border: 1px solid black;
    border-collapse: collapse;

}
Comment

How to create table in HTML with border

<!DOCTYPE html>
<html>
<style>
table, th, td {
  border:1px solid black;
}
</style>
<body>

<h2>A basic HTML table</h2>

<table style="width:100%">
  <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
  </tr>
  <tr>
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td>Germany</td>
  </tr>
  <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
  </tr>
</table>

<p>To understand the example better, we have added borders to the table.</p>

</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Css :: transition shorthand css 
Css :: centering css elements 
Css :: html dim entire screen 
Css :: hide scroll bar 
Css :: css not class 
Css :: elementor is swiping 
Css :: media max width css 
Css :: white rgb color 
Css :: color transition time css 
Css :: make a paragraph fit in div 
Css :: second child css 
Css :: mongoose populate selected fields 
Css :: media query min max 
Css :: how to add space inbetween lines in html 
Css :: html css hide details arrow 
Css :: center div content 
Css :: change br height 
Css :: css stylistic alternates 
Css :: css fit iframe to div 
Css :: how to make a triangle in css 
Css :: css grid minmax function 
Css :: remove border radius select css 
Css :: css animate background color change 
Css :: CSS background blur or glass effect 
Css :: all.min.css cdn 
Css :: css selector not contains attribute 
Css :: css comment 
Css :: onhover mouse pointer css 
Css :: css blink animation 
Css :: boostrap line 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =