user225269
user225269

Reputation: 10913

table class in php

Is it possible to put a table class in php, like this:

echo "<table  class='xd' border='1'>
<tr>
<th>IDNO</th>
<th>ADDRESS</th>
<th>LASTNAME</th>
<th>FIRSTNAME</th>

</tr>";

I have a table inside a table. The outside table is html. And if I only put table in the css. It will affect both. But when I put class in the table with php script. It won't work. Please help.

Upvotes: 0

Views: 1394

Answers (2)

Fabian
Fabian

Reputation: 13691

Will effect all tables on the page:

table {
}

Affects just tables with the class bla:

table.bla {
}

Upvotes: 2

oezi
oezi

Reputation: 51807

yes, you can do so. if your css doesn't work, maybe your selector is wrong? (mixed up #bla and .bla ?)

Upvotes: 2

Related Questions