k0r54
04-02-2005, 01:16 PM
Hi,
How come with the code below it does not allow me to do 100% width.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>D-NET : - The very best in torrent downloads</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<style type="text/css">
.cu_table {
border-collapse: collapse;
border: 2px solid black;
}
.cu_table td {
border: solid 1px black;
margin: 0;
padding: 3px;
font: small Verdana,sans-serif;
text-align: left;
vertical-align:top;
width:100%;
}
.cu_table th {
border: solid 1px black;
margin: 0;
padding: 3px;
background-color: #F5f7f7;
color: #21536A;
font: large Verdana,sans-serif;
font-weight: bold;
text-align: left;
}
.cu_thsml {
font-size:small;
}
</style>
</head>
<body>
<table class='cu_table'>
<tr>
<th colspan='2'><p>Sorry Error</p>
<p class='cu_thsml'>The following fields have not been completed correctly: -</p></th>
</tr>
<tr>
<td>
<ul>
<li><strong>First Name</strong> must be filled in.</li>
<li><strong>Last Name</strong> must be filled in.</li>
<li><strong>Display Name</strong> must be filled in.</li>
</ul>
</td>
</tr>
</table>
</body>
</html>
The thing is that if you add a another td into the second row it works fine?
because of the environment it is going into i can not set the table to 100%
Any ideas
Thanks
k0r54
How come with the code below it does not allow me to do 100% width.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>D-NET : - The very best in torrent downloads</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<style type="text/css">
.cu_table {
border-collapse: collapse;
border: 2px solid black;
}
.cu_table td {
border: solid 1px black;
margin: 0;
padding: 3px;
font: small Verdana,sans-serif;
text-align: left;
vertical-align:top;
width:100%;
}
.cu_table th {
border: solid 1px black;
margin: 0;
padding: 3px;
background-color: #F5f7f7;
color: #21536A;
font: large Verdana,sans-serif;
font-weight: bold;
text-align: left;
}
.cu_thsml {
font-size:small;
}
</style>
</head>
<body>
<table class='cu_table'>
<tr>
<th colspan='2'><p>Sorry Error</p>
<p class='cu_thsml'>The following fields have not been completed correctly: -</p></th>
</tr>
<tr>
<td>
<ul>
<li><strong>First Name</strong> must be filled in.</li>
<li><strong>Last Name</strong> must be filled in.</li>
<li><strong>Display Name</strong> must be filled in.</li>
</ul>
</td>
</tr>
</table>
</body>
</html>
The thing is that if you add a another td into the second row it works fine?
because of the environment it is going into i can not set the table to 100%
Any ideas
Thanks
k0r54