Stretched Table : table size « Tags « HTML / CSS






Stretched Table

    
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title></title>
<style type="text/css" title="text/css">
.parent {
  width: 600px;
  height: 600px;
  background: black;
}

* .stretched {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  background: gold;
}
</style>
</head>
<body>

<div class="parent"> 
  <table class="stretched"><tr><td>Stretched Table</td></tr></table> 
</div> 


</body>
</html>

   
    
    
  








Related examples in the same category

1.Table body font size
2.Sized Table
3.Sized or Stretched Table
4.Right-offset Sized Table
5.Right-aligned Sized Table
6.Centered Sized Table
7.Left-offset Sized Table
8.tbody td font-size: 120%;
9.'cellpadding' sets the empty width between a cell's border and its content
10.'cellspacing' sets the width of the empty space between cells in a table
11.Table width 200px
12.Set table width, margin and text align
13.A table with auto width only expands enough to accomodate its content
14.table width: 350px;
15.table border-width: 1px;
16.table width:250px;
17.table width: auto;
18.table width: 95%;
19.An HTML table with width and float attributes
20.table width: 50%; margin: 0 auto; text-align: left;
21.table with auto width
22.table width: 100%;border: thin solid black;border-spacing: 15px 0;
23.table border-style:solid; border-width:1px; border-color:#666666;
24.table width: 100%;
25.Table width: auto
26.table auto width and height
27.Column Width: percentage, auto and px
28.Shrinkwrapped Table column width
29.table width: 100%
30.Fixed Table with fixed width
31.Adding auto width to a Table
32.Left-offset Shrinkwrapped Table
33.Right-offset Shrinkwrapped Table
34.Indented Stretched Table