|
Posted by dorayme on 11/03/05 05:24
> From: "Ram" <SternR@gmail.com>
>
> Hey,
> Usually to tell a table what css class it's using I'm using the
> following code:
> <table class="The_CSS_CLass"> ... </table>
> Is there a way to tell the table what css file to use?
> Thanks ahead
>
> -- Ram
>
The table might know things, sometimes because the info is close
at hand (see below). But generally it is the /page/ that knows
or does not know where the css info is. And the table perhaps
can be said to know via the page. Anyway, though it can /not-know/
in an infinite number of ways, it /can/ know in at least 3 ways:
1. The style info is inline
<table style="background-color:yellow"><tr><td>Possibly lovely
layout</td></tr></table>
2. The style info is in the head of the doc
<head>
....
<style type="text/css">
table {
background-color: yellow;
}
</style>
....
</head>
3. The style info is in a separate sheet linked by reference in
the head
<head>
....
<link rel="stylesheet" type="text/css" href="main.css">
....
</head>
By the way, Ram, how big are you?
--
dorayme
Navigation:
[Reply to this message]
|