You are here: Re: Tables And CSS « HTML « IT news, forums, messages
Re: Tables And CSS

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация