Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why table width is ignored?

I coded style in the following:

table.gridtable {
    font-family: verdana,arial,sans-serif;
    font-size:14px;
    color:#333333;
    border-width: 1px;
    border-color: #666666;
    border-collapse: collapse;
        width: 400px;
}

and I see no overridings in Firebug. Nevertheless table width is computed as 812 px;

Why?

Actual page is here (in Russian): http://garmonia-znakomstva.ru/service.html

UPDATE

Can I add invisible word breaks, which would cause word breaking and hyphen if insufficient space and continuous word if enough space?

like image 724
Suzan Cioc Avatar asked Dec 12 '12 23:12

Suzan Cioc


1 Answers

Applying this explicitly gave me the right result, width is respected, long text using new lines and height (instead width) expanding accordingly.

td { white-space:normal}
like image 196
David Avatar answered Sep 29 '22 07:09

David