html table with column in monospace font
06:08 18 May 2015

I am trying to create an html table using css. The first column is to be in monospace font, as it contains computer code.

The font-family attribute does not seem to work, however. This is the html file:

    


    
    
command 1 description
command 2 description

The corresponding css file contains the following:

table.software{
    font-family: Arial;
    font-size: 13pt;
    border-width: 1px 1px 1px 1px;
    border-style: solid;
}    
table.software td{
    text-align: left;
    border-width: 1px 1px 1px 1px;
    border-style: solid;
    padding: 5px;
}    
.command{
    font-family: monospace;
    font-size: 10pt;
    width: 300;
}

I would be most grateful for a pointer of how to achieve the change of fonts.

html css fonts