<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1044896" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1044896</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Greg, thanks for the</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-background-images-constrained-div-tag#comment-1244895</link>
    <description> &lt;p&gt;Greg, thanks for the assistance.&lt;/p&gt;
&lt;p&gt;As you rightly point out, I don&#039;t think it&#039;s possible to do it this way. What I&#039;ve ended up doing is the following:&lt;/p&gt;
&lt;p&gt;In my page.tpl.php:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;div class=&amp;quot;acacia&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;acaciar&amp;quot;&amp;gt;&lt;br /&gt;		&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;print &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;&amp;lt;img src=&quot;&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$base_path &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$directory&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;/images/spacer.gif&quot; width=337 height=162 /&amp;gt;&#039; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;And in style.css:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;.acacia {&lt;br /&gt;&amp;nbsp; background-image: url(images/grass.png);&lt;br /&gt;&amp;nbsp; background-position: bottom;&lt;br /&gt;&amp;nbsp; background-repeat: repeat-x;&lt;br /&gt;&amp;nbsp; background-color: teal;&lt;br /&gt;&amp;nbsp; width: 100%;&lt;br /&gt;&amp;nbsp; height: 16px;&lt;br /&gt;&amp;nbsp; overflow: visible;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;.acaciar {&lt;br /&gt;&amp;nbsp; background-image: url(images/g3846.png);&lt;br /&gt;&amp;nbsp; background-repeat: no-repeat;&lt;br /&gt;&amp;nbsp; background-position: right;&lt;br /&gt;&amp;nbsp; position: relative;&lt;br /&gt;&amp;nbsp; top: -150px;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;This works fine. (well, it does in Chrome and FF)&lt;/p&gt;
&lt;p&gt;The DIV container places the tree on the right and the height of the container is expanded to take the 1x1 clear &#039;spacer.gif&#039; enlarged to a height of 162 without affecting the central column.&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Sep 2009 21:51:30 +0000</pubDate>
 <dc:creator>davecoventry</dc:creator>
 <guid isPermaLink="false">comment 1244895 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>davecoventry</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-background-images-constrained-div-tag#comment-1244890</link>
    <description> &lt;p&gt;&lt;div class=&quot;quote-msg&quot;&gt;&lt;div class=&quot;quote-author&quot;&gt;&lt;em&gt;davecoventry&lt;/em&gt; wrote:&lt;/div&gt;Basically I want the tree graphic to extend outside of the &#039;acacia&#039; and &#039;acaciar&#039; DIV containers.&lt;/div&gt;&lt;br /&gt;
If I understand you correctly, that cannot happen.&lt;/p&gt;
&lt;p&gt;If you set a DIV height (and/or width) then it will remain at that size, regardless of what&#039;s in it.&lt;/p&gt;
&lt;p&gt;Your DIV acacia is the &quot;parent&quot; DIV and is set to 16px high, then the tree image is doing as it should, and is showing the top 16px of the tree image in that DIV because it is encased in a DIV with a 16px height.&lt;/p&gt;
&lt;p&gt;I think you need another approach. There are various ways to accomplish this,  but it&#039;s hard to advise without knowing the surroundings you are placing these divs into (etc).&lt;/p&gt;
&lt;p&gt;For example, you could have the grass image include the green background above it, so the green and the grass will repeat horizontally. Put that as a background in a container div then simply put your tree and elephant in separate divs each where required WITHIN that container div (probably with FLOAT).&lt;br /&gt;
Again without knowing your setup it&#039;s hard, as you might not have a set height for this and therefore the grass and green BG together is not possible..?&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;CSS&lt;br /&gt;#wrapper{&lt;br /&gt;background: url(grass_and_green.png) repeat-x;&lt;br /&gt;}&lt;br /&gt;#tree, #elephant{&lt;br /&gt;float: left;&lt;br /&gt;}&lt;br /&gt;HTML&lt;br /&gt;&amp;lt;div id=&amp;quot;wrapper&amp;quot;&amp;gt;&lt;br /&gt;	 &amp;lt;div id=&amp;quot;tree&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;	 &amp;lt;div id=&amp;quot;elephant&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;So the wrapper has the grass and green BG colour as a background, allowing the two other divs, elephant and tree, to be placed within that wrapper div.&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Sep 2009 20:21:53 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1244890 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Hi Greg.
Yes, the acacia div</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-background-images-constrained-div-tag#comment-1244889</link>
    <description> &lt;p&gt;Hi Greg.&lt;/p&gt;
&lt;p&gt;Yes, the acacia div is set to 16px as that is the height of the &#039;grass&#039;.&lt;/p&gt;
&lt;p&gt;I don&#039;t want it any larger as this would leave a big green space under the center column text. I want the tree to extend up on the right hand side of the central column text with the grass forming a horizontal rule under the text. (Once I have this figured out, there is an elephant I want to place on the left hand side).&lt;/p&gt;
&lt;p&gt;Not sure if I&#039;m making sense.&lt;/p&gt;
&lt;p&gt;Basically I want the tree graphic to extend outside of the &#039;acacia&#039; and &#039;acaciar&#039; DIV containers.&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Sep 2009 19:43:59 +0000</pubDate>
 <dc:creator>davecoventry</dc:creator>
 <guid isPermaLink="false">comment 1244889 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Is it as simple as your</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/css-background-images-constrained-div-tag#comment-1244888</link>
    <description> &lt;p&gt;Is it as simple as your &quot;acacia&quot; div set to 16px high?&lt;br /&gt;
The tree image is in a child of that div.&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Sep 2009 17:24:00 +0000</pubDate>
 <dc:creator>greg</dc:creator>
 <guid isPermaLink="false">comment 1244888 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
