I'm trying to convert a site to using CSS styles, instead of using tag values such as "width=100%" on table elements and suchlike.
So, I've created various classes, most of which work as I want, but I cannot get one of them working, and can't figure out why.
Specifically, I've created a class as follows:
.w_100{width:100%;}
and then apply it to a table:
<table class="w_100"> ....
but the width of the table is only ever displayed as the width of the content within the table, which is much less than 100%.
However, I note that if I use an inline style:
<table style="width:100%"> ....
then everything works as I expect, but I'd really rather use the class.
So, I'm wondering what silly thing it is that I must be missing or misunderstanding such that the class doesn't do as I expect it to. Any suggestions on how I might get it to work?
Much appreciated. Thanks!

