<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1043762" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1043762</link>
    <description></description>
    <language>en</language>
          <item>
    <title>greg wrote:

decibel.places</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/new-css-how-put-background-color-style-sheet#comment-1241208</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;greg&lt;/em&gt; wrote:&lt;/div&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;decibel.places&lt;/em&gt; wrote:&lt;/div&gt;however, I do not recommend using HTML document objects (body, head, etc) as class or id names&lt;/div&gt;Why not?&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;because CSS is &lt;em&gt;cascading&lt;/em&gt; and the properties flow from the general to the specific, but using page element names as class or id names can be confusing&lt;/p&gt;
&lt;p&gt;so if you have a p element with a body class &lt;code&gt;p.body&lt;/code&gt;, you might think that it applies to all elements in the body, whereas it only applies to p elements with the body class. then add in an h1 with body class &lt;code&gt;h1.body&lt;/code&gt; and you are going to get really confused really quickly.&lt;/p&gt;
&lt;p&gt;in the case of the OP, there is an id named body &lt;code&gt;#body&lt;/code&gt; - and new-to-css thought that applied to the body element, while it only applies to an element with that id (and you cannot give multiple elements the same id name)&lt;/p&gt;
&lt;p&gt;It&#039;s sort of an aesthetic thing, I prefer id and classnames that are unique and descriptive.&lt;/p&gt;
 </description>
     <pubDate>Sat, 02 May 2009 19:26:27 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1241208 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>new-to-css wrote:
Thanks</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/new-css-how-put-background-color-style-sheet#comment-1241148</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;new-to-css&lt;/em&gt; wrote:&lt;/div&gt;Thanks very much for your help and advice!&lt;/div&gt;No problem!&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;decibel.places&lt;/em&gt; wrote:&lt;/div&gt;however, I do not recommend using HTML document objects (body, head, etc) as class or id names&lt;/div&gt;Why not?&lt;/p&gt;
 </description>
     <pubDate>Fri, 01 May 2009 06:37:17 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1241148 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hi Greg and</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/new-css-how-put-background-color-style-sheet#comment-1241143</link>
    <description> &lt;p&gt;Hi Greg and decibel.places!&lt;/p&gt;
&lt;p&gt;Thanks very much for your help and advice!&lt;br /&gt;
Removing the # did resolve the problem.&lt;br /&gt;
Thanks again, you made my day &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;br /&gt;
ES&lt;/p&gt;
 </description>
     <pubDate>Fri, 01 May 2009 00:19:00 +0000</pubDate>
 <dc:creator>new-to-css</dc:creator>
 <guid isPermaLink="false">comment 1241143 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>to elaborate, let&#039;s say you</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/new-css-how-put-background-color-style-sheet#comment-1241141</link>
    <description> &lt;p&gt;to elaborate, let&#039;s say you created a p element with the #body id:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;p id=&amp;quot;body&amp;quot;&amp;gt;&amp;lt;/p&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;then your selector #body or p#body would work to set the background for THAT p container (not the whole document body)&lt;/p&gt;
&lt;p&gt;however, I do not recommend using HTML document objects (body, head, etc) as class or id names&lt;/p&gt;
&lt;p&gt;here is &lt;a href=&quot;http://www.w3schools.com/css/css_examples.asp&quot;&gt;another page at W3Schools with many CSS examples&lt;/a&gt; you can try&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Apr 2009 21:34:34 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1241141 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>new-to-css wrote:
Now I did</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/new-css-how-put-background-color-style-sheet#comment-1241136</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;new-to-css&lt;/em&gt; wrote:&lt;/div&gt;Now I did change in the style sheet the body attributes and added background-color: #d3d3d3&lt;/p&gt;
&lt;p&gt;Nothing changes.&lt;/div&gt;That&#039;s because you made a new CSS ID by doing the following:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;#body{&lt;br /&gt;background-color: #D3D3D3;&lt;br /&gt;color:black;&lt;br /&gt;font-family:Verdana,Geneva,Arial,Helvetica,sans-serif;&lt;br /&gt;font-size:13px;&lt;br /&gt;margin:0;&lt;br /&gt;padding:0;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;It&#039;s not an ID called body you want, you are setting the style for the page body. The default element for the entire document body.&lt;/p&gt;
&lt;p&gt;Remove the # from in front of the word body and it will work. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Apr 2009 19:30:09 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1241136 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>HI EG and decibel.places</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/new-css-how-put-background-color-style-sheet#comment-1241134</link>
    <description> &lt;p&gt;HI EG and decibel.places !&lt;/p&gt;
&lt;p&gt;Thanks for taking the time to try to help me.&lt;/p&gt;
&lt;p&gt;I want to change the color around the website, the color of the background on which the website &quot;sits&quot;.&lt;/p&gt;
&lt;p&gt;Now I did change in the style sheet the body attributes and added background-color: #d3d3d3&lt;/p&gt;
&lt;p&gt;Nothing changes.&lt;/p&gt;
&lt;p&gt;So I don&#039;t know what else to do?&lt;/p&gt;
&lt;p&gt;Do I need to put any referring tag into the html source code of my page?&lt;/p&gt;
&lt;p&gt;If I chnage other things on the stylesheet I have no bother at all, it is only the website background color that does not want to change. There must be something that &quot;blocks&quot; the background color to be changed, but I don&#039;t know where and what I would need to adjust, add or delete from the source code.&lt;/p&gt;
&lt;p&gt;Would you have any other ideas to solve this problem?&lt;/p&gt;
&lt;p&gt;ES&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Apr 2009 19:00:36 +0000</pubDate>
 <dc:creator>new-to-css</dc:creator>
 <guid isPermaLink="false">comment 1241134 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>W3Schools has a good</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/new-css-how-put-background-color-style-sheet#comment-1241108</link>
    <description> &lt;p&gt;&lt;a href=&quot;http://www.w3schools.com/css/css_reference.asp#background&quot;&gt;W3Schools has a good reference&lt;/a&gt; about the background property&lt;/p&gt;
&lt;p&gt;note that the background color can be specified with background-color as well as with the background property.&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Apr 2009 13:23:39 +0000</pubDate>
 <dc:creator>decibel.places</dc:creator>
 <guid isPermaLink="false">comment 1241108 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hi, welcome to TWF</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/new-css-how-put-background-color-style-sheet#comment-1241101</link>
    <description> &lt;p&gt;Hi, welcome to TWF &lt;em&gt;new-to-css&lt;/em&gt; &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;br /&gt;
(I&#039;m presuming that&#039;s not your real name)&lt;/p&gt;
&lt;p&gt;Which background do you want to change? The main background that the template sits on can be changed using the body tag in your style.css&lt;br /&gt;
EG&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;body{&lt;br /&gt;background-color: red;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;After that you have various areas, divs and unordered lists that could have their background colours changed.&lt;/p&gt;
&lt;p&gt;A header div, but the image seems to cover all of that area so a background colour would not be seen anyway.&lt;/p&gt;
&lt;p&gt;Then you have the main content under the top nav (Home, Vet Tips, Contact, Privacy). You could change all the individual colours by opening your style.css stylesheet in an editor and changing them or adding a background colour if they don&#039;t already have one.&lt;/p&gt;
&lt;p&gt;EG&lt;br /&gt;
The top nav menu is a class called .bevelmenu. so opening your style.css stylesheet and add &lt;code&gt;background-color: green;&lt;/code&gt; as a new property to your bevelmenu class.&lt;/p&gt;
&lt;p&gt;Alternatively, you could perhaps wrap the entire centre content area in a new div and give that a background colour. But if any of the inner divs (like the left menu) already has a background colour then the inner one will override the first one. (Child overrides parent settings)&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Apr 2009 10:19:00 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1241101 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
