YUI Datatable Width

datatable, html-table, width, yui

Solution

It turns out the solution is really simple:

.yui-dt table
{
    width: 100%;
}

Problem

This may seem like a basic question, but I'm having trouble figuring out how to set the table width to 100% on a YUI datatable. I tried doing ``` #dtContainer { width: 100%; } #dtContainer table { width: 100% } ``` but none of these approaches work. To clarify, I am trying to set the datatable width to 100% when the table is empty and the empty message is displayed. The generated table is an HTML table; so, I thought this should work.

Original source