Hi,

I am trying to add a table to a new page, for some reason the table stretches across the entire content area. Initially, there was some CSS involved in my code, but then later I decided to just create a test page with the following content. The input format was set to FULL HTML.

<TABLE WIDTH="50" BORDER="4">
<TR>
  <TD>NEW TABLE</TD>
</TR>
<TR>
  <TD> SECOND ROW</TD>
</TR>
<TR>
  <TD> THIRD ROW</TD>
</TR>
</TABLE>

--- test area ---

Now, it's my understanding that this table should span 50px across the main content area. I tried something similar in drupal 4.7 and it worked without a hitch. I'm not too sure on what's causing the problem here. I'm out of ideas for the moment and would really appreciate any input to help sort the problem, Thanks.

Comments

kiz_0987’s picture

Try using Firefox's DOM Inspector (installed with FF) which will allow you to see the CSS hierarchy and which definitions are causing you problems.

snav’s picture

The problem was occuring because by default the Garland theme sets table width to 100%. So I had to use CSS to override the default value for this particular table. Thanks for recommending the Firefox DOM Inspector, it was a real help.