Hi all,
I have a table that i would like to add a style to it. I have allready got an external css.
Am i correct by saying...
<table CLASS="heading">
and then in my css...
.heading {
border: 0px none;
text-align: left;
padding: 0px 0px 0px 0px;
width: 100%;
vertical-align: middle;
}
or is there a better way of doing this?
By the way i've tried it in IE6 and firefox 1pr and none of it works.
All help apreciatedIt does work, well the border and width will, the rest is not applicable to table.Thanks Fang
How do i make the content inside the cell vertically aligned to the middle???Apply it to the cell:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>table style</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
.heading {
border: 0px none;
width: 100%;
}
.heading td {
text-align: left;
padding: 0px;
vertical-align:middle;
}
-->
</style>
</head>
<body>
<table class="heading" summary="">
<tr><td>xxxx</td><td>xx<br />xx</td></tr>
</table>
</body>
</html>thanks
worked a treat
told you I am a beginner
Later
I have a table that i would like to add a style to it. I have allready got an external css.
Am i correct by saying...
<table CLASS="heading">
and then in my css...
.heading {
border: 0px none;
text-align: left;
padding: 0px 0px 0px 0px;
width: 100%;
vertical-align: middle;
}
or is there a better way of doing this?
By the way i've tried it in IE6 and firefox 1pr and none of it works.
All help apreciatedIt does work, well the border and width will, the rest is not applicable to table.Thanks Fang
How do i make the content inside the cell vertically aligned to the middle???Apply it to the cell:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>table style</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
.heading {
border: 0px none;
width: 100%;
}
.heading td {
text-align: left;
padding: 0px;
vertical-align:middle;
}
-->
</style>
</head>
<body>
<table class="heading" summary="">
<tr><td>xxxx</td><td>xx<br />xx</td></tr>
</table>
</body>
</html>thanks
worked a treat
told you I am a beginner
Later