Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't my first HTML table column have bold text?

Tags:

html

css

My understanding of the col tag tells me that the following should style text in my first table column as bold, but this is not happening. What am I doing wrong?

<table class="span-12">
    <col style="font-weight: bold;" />
    <col />
    <tr>
        <td>
            Client
        </td>
        <td>
            Apartment Applied Visual Arts
        </td>
    </tr>
</table>
like image 929
ProfK Avatar asked Aug 08 '11 12:08

ProfK


1 Answers

The table data cells are not descendants of the col element, so they do not inherit any properties from it. See the columns section of the CSS specification.

like image 106
Quentin Avatar answered Oct 05 '22 06:10

Quentin