<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1027964" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1027964</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/help-table-formatting#comment-1165370</link>
    <description> &lt;p&gt;Sorry to double-post, but...&lt;br /&gt;
I should note that I could/should have used  tags in the  element, if you do it just provides even mor hooks to play with, and that&#039;s what you need when using css. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 03 Feb 2005 13:24:50 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1165370 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/help-table-formatting#comment-1165369</link>
    <description> &lt;p&gt;Yes you&#039;re learning the technical way that css works - and you may not like what I&#039;m about to say, but it has relevance to your problem - but there are some fundamentals missing from the way you&#039;re trying to code.&lt;/p&gt;
&lt;p&gt;1. No DOCTYPE - not detrimental, but a browser does make some decisions based upon this and it&#039;s needed for using the W3C validator.&lt;/p&gt;
&lt;p&gt;2. Your css is suffering from an attack of the classes! It is all too tempting to define everything by classes, and to only take half-measures when learning css.&lt;/p&gt;
&lt;p&gt;3. Not using consistent semantic markup. You&#039;re not utilising the strengths of (X)HTML to provide &#039;hooks&#039; for your css, hence the need for many classes. For example: There is no  or  tags that could be used as hooks.&lt;/p&gt;
&lt;p&gt;4. Using the &#039;tree&#039; model of (X)HTML allows you to add a class or id hook to an element high up the tree and then use css to change its child elements, I&#039;ll clarify with an example:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;table id=&amp;quot;testtable&amp;quot;&amp;gt;&lt;br /&gt; &amp;lt;thead&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;...&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt; &amp;lt;/thead&amp;gt;&lt;br /&gt; &amp;lt;tbody&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;...&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt; &amp;lt;/tbody&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Then you can use css selectors to format the table - for example:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;#testtable thead td {&lt;br /&gt;&amp;nbsp; ...&lt;br /&gt;}&lt;br /&gt;#testtable tbody td {&lt;br /&gt;&amp;nbsp; ...&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;This is far easier to understand, you can group all these selectors together and see a clear formatting path for every element, rather than having multiple ambiguous classes that could apply to anthing.&lt;/p&gt;
&lt;p&gt;Overall: This will cut-down your (X)HTML and CSS code substantially, making it a lot easier to debug, provide more hooks, whilst making the code semantic that will make the code easier to read and portable across pages without having to create yet-more classes.&lt;/p&gt;
&lt;p&gt;I know this isn&#039;t the answer you wanted, but it&#039;ll be a lot easier for all of us to read the code and provide answers to your questions if you do this!&lt;/p&gt;
&lt;p&gt;Also, if you - or anyone - spot any errors in what is written please correct me, this was all written from memory!&lt;/p&gt;
 </description>
     <pubDate>Thu, 03 Feb 2005 13:22:38 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1165369 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/help-table-formatting#comment-1165361</link>
    <description> &lt;p&gt;With tables its best to &#039;size&#039; the cells to desired width, even if you need to put width=&quot;100%&quot; in a td cell.&lt;br /&gt;
Another way (and there are several) is to nest the content table in a fixed sized table, this way the nested table wont (shouldn&#039;t) exceed the main tables width.&lt;/p&gt;
&lt;p&gt;My belief for data tables (such as your example) should be fixed width. while the big table (width 100%) looks ok at 800x600, on a screen size twice or three times as big things can be really spread out.&lt;/p&gt;
&lt;p&gt;Since your learning CSS try make what you have without tables, a good challenge for you &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 03 Feb 2005 10:34:54 +0000</pubDate>
 <dc:creator>Busy</dc:creator>
 <guid isPermaLink="false">comment 1165361 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
