<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1043521" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1043521</link>
    <description></description>
    <language>en</language>
          <item>
    <title>As far as cross-browser</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-ok-stretches-when-used-php-include#comment-1240135</link>
    <description> &lt;p&gt;As far as cross-browser issues go, tables aren&#039;t much of a problem. I suggest you use a strict DOCTYPE if you are to use any though - a Transitional DOCTYPE puts modern browsers into &quot;almost standards&quot; mode that affects table cell layout. Internet Explorer does not have an &quot;almost standards&quot; mode, so you may have to add IE hacks that would otherwise not be necessary.&lt;/p&gt;
&lt;p&gt;For more about DOCTYPE see &lt;a href=&quot;http://hsivonen.iki.fi/doctype/&quot; title=&quot;http://hsivonen.iki.fi/doctype/&quot;&gt;http://hsivonen.iki.fi/doctype/&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 06 Apr 2009 20:21:10 +0000</pubDate>
 <dc:creator>webwiz</dc:creator>
 <guid isPermaLink="false">comment 1240135 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>No problem, always glad to</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-ok-stretches-when-used-php-include#comment-1240127</link>
    <description> &lt;p&gt;No problem, always glad to help.&lt;/p&gt;
&lt;p&gt;To solve the other styling issues, as I said, another option is to use a specific ID for your particular paragraph.&lt;/p&gt;
&lt;p&gt;EG:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;#header_paragraph{&lt;br /&gt;margin: 0;&lt;br /&gt;text-align: center;&lt;br /&gt;}&lt;br /&gt;&amp;lt;p id=&amp;quot;header_paragraph&amp;quot;&amp;gt;Hello&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 06 Apr 2009 16:20:43 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1240127 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Marvellous ! Thanks a</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-ok-stretches-when-used-php-include#comment-1240126</link>
    <description> &lt;p&gt;Marvellous ! Thanks a million Greg - I tried adding the code to the css file and instantly corrected the issues with the header as you advised, but has created other spacing issues with the rest of the layout which I need to address.&lt;br /&gt;
You&#039;ve put me in the right direction which was what I wanted - the site has been built and adapted using tables over the years which clearly today are not acceptable if cross browser styling is required.&lt;br /&gt;
Again, many thanks.&lt;/p&gt;
&lt;p&gt;Chris.&lt;/p&gt;
 </description>
     <pubDate>Mon, 06 Apr 2009 15:56:58 +0000</pubDate>
 <dc:creator>xert</dc:creator>
 <guid isPermaLink="false">comment 1240126 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hi Chris, welcome to TWF 
I</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/header-ok-stretches-when-used-php-include#comment-1240122</link>
    <description> &lt;p&gt;Hi Chris, welcome to TWF &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;
&lt;p&gt;I tried a new CSS rule in your stylesheet for paragraphs &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; with margin of 0 and that fixed the issue.&lt;/p&gt;
&lt;p&gt;I &quot;think&quot; that when you declare a doc type it &lt;strong&gt;then&lt;/strong&gt; uses default element attributes, like padding, margins etc, and a paragraph has defaults.&lt;br /&gt;
So, in your main stylesheet, (html.css or whatever) add a new declaration for paragraphs like this:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;p {&lt;br /&gt;margin: 0;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Or, whatever styling you want for paragraphs. Although remember that adding that attribute to paragraphs will affect ALL styling wherever you use a default &lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; without additional CSS class or ID&lt;/p&gt;
&lt;p&gt;That said, I&#039;m not really sure why you use a paragraph in a table cell. Viewing your code I don&#039;t actually see a real reason for it. You may have a reason, but taking out the paragraph also fixes the issue.&lt;/p&gt;
&lt;p&gt;EG:&lt;br /&gt;
You currently have&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;td width=&amp;quot;232&amp;quot; valign=&amp;quot;top&amp;quot; style=&amp;quot;border-left-color: rgb(158, 107, 1); border-right-style: none; border-right-width: medium;&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;a href=&amp;quot;index.php&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;img hspace=&amp;quot;5&amp;quot; height=&amp;quot;62&amp;quot; border=&amp;quot;0&amp;quot; width=&amp;quot;200&amp;quot; vspace=&amp;quot;5&amp;quot; alt=&amp;quot;click for home page&amp;quot; src=&amp;quot;templatefiles/logo.gif&amp;quot;/&amp;gt;&lt;br /&gt;&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/td&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Removing the &lt;code&gt;&amp;lt;p align=&amp;quot;center&amp;quot;&amp;gt;&amp;lt;/p&amp;gt;&lt;/code&gt; resolves that, and you can add the align=&quot;center&quot; to the &lt;code&gt;&amp;lt;td&amp;gt;&lt;/code&gt; instead. Or, a better way, is to use a CSS class for your table, rows and cells.&lt;/p&gt;
&lt;p&gt;That said..&lt;br /&gt;
&lt;strong&gt;DIV versus TABLE&lt;/strong&gt;&lt;br /&gt;
I would also advise you learn and use DIV&#039;s for styling and alignment such as the content you currently use tables for. It&#039;s much more flexible and once you know how to use them they offer a lot more options in my opinion.&lt;br /&gt;
It&#039;s an age old argument, and of course if you are familiar with tables and don&#039;t have time to learn about DIV&#039;s then perhaps continue to use tables.&lt;/p&gt;
 </description>
     <pubDate>Mon, 06 Apr 2009 14:28:00 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1240122 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
