<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Re: Updating the css file</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Re-Updating-the-css-file-81206</link>
        <description></description>
        <pubDate>Sat, 07 Nov 2026 00:18:57 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Re-Updating-the-css-file-81206" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241540#post2241540</link>
          <description><![CDATA[<p>Perfect! Thank you so much for your patience.</p>]]></description>
          <pubDate>Fri, 08 Dec 2017 12:59:49 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241540#post2241540</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241539#post2241539</link>
          <description><![CDATA[<p>Adjust "#subheaderprojects" padding-bottom to allow more space for the wrapper. You can also change the margin inside of "#subheaderprojects" to create more space.</p>
<p>Hope this makes sense XD</p>]]></description>
          <pubDate>Fri, 08 Dec 2017 12:38:01 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241539#post2241539</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241538#post2241538</link>
          <description><![CDATA[<p>Much better! :-) <a href="http://dordanmech.com/projects2.php" rel="nofollow">http://dordanmech.com/projects2.php</a></p>
<p>Do you know how to adjust the depth (height) of the photo?</p>]]></description>
          <pubDate>Fri, 08 Dec 2017 12:34:26 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241538#post2241538</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241537#post2241537</link>
          <description><![CDATA[<p>The "wrapper element" here is referring to the wrapper of the img element. In this case, it's the "#<span>subheaderprojects</span>". Sorry for the confusion!</p>]]></description>
          <pubDate>Fri, 08 Dec 2017 12:16:36 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241537#post2241537</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241536#post2241536</link>
          <description><![CDATA[<p>All I can see in the .content-wrapper class is this:</p>
<p><code>.content-wrapper {<br /> overflow-x: hidden;<br /> }</code></p>
<p>There aren't any other values?</p>
<p>As should have become clear by now, I'm not a programming expert! :-)</p>]]></description>
          <pubDate>Fri, 08 Dec 2017 12:13:28 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241536#post2241536</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241535#post2241535</link>
          <description><![CDATA[<p>The gap is created by padding on the wrapper element.</p>
<p>If you inspect the code you can see how you set the padding for the wrapper element. To remove the gap you need to remove the paddings on the element and instead set this padding as the margin of its child.</p>
<p>Hope that helps!</p>]]></description>
          <pubDate>Fri, 08 Dec 2017 12:06:08 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241535#post2241535</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241534#post2241534</link>
          <description><![CDATA[<p>We're getting there! The image is showing up now - <a href="http://dordanmech.com/projects2.php" rel="nofollow">http://dordanmech.com/projects2.php</a> - but there's a white gap above it.</p>
<p><em>2. adjust parent style padding to make the image cover the background and keep the wrapper's size</em></p>
<p>Sorry, not sure what this means?</p>]]></description>
          <pubDate>Fri, 08 Dec 2017 11:59:08 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241534#post2241534</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241533#post2241533</link>
          <description><![CDATA[<p>Hi,</p>
<p>This is the solution:</p>
<p>1. set img style to be z-index: 0 and width: 100%</p>
<p>2. adjust parent style padding to make the image cover the background and keep the wrapper's size</p>
<p>Hope that helps!</p>]]></description>
          <pubDate>Fri, 08 Dec 2017 11:48:34 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241533#post2241533</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241532#post2241532</link>
          <description><![CDATA[<p>I replaced </p>
<p><code>&lt;img class="background-img" src="&lt;?php echo $imgUrl ?&gt;"&gt; </code></p>
<p>with </p>
<p><code>&lt;img class="background-img" src="&lt;?php echo htmlencode($upload['urlPath']) ?&gt;" /&gt;</code></p>
<p>but still no luck, I'm afraid. <a href="http://dordanmech.com/projects2.php" rel="nofollow">http://dordanmech.com/projects2.php</a></p>
<p>I also tried</p>
<p><code>&lt;?php foreach ($projects_introductionRecord['main_image'] as $index =&gt; $upload): ?&gt;<br /> &lt;img class="background-img" src="&lt;?php echo htmlencode($upload['urlPath']) ?&gt;" /&gt;<br /> &lt;?php endforeach ?&gt;</code></p>
]]></description>
          <pubDate>Fri, 08 Dec 2017 11:41:14 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241532#post2241532</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241531#post2241531</link>
          <description><![CDATA[<p>Hi,</p>
<p>The "$imgUrl" should be replaced or assigned with the actual image URL. Depending on where you get the image from this value will be different. Let me know if you have any questions and I'm happy to help :).</p>]]></description>
          <pubDate>Fri, 08 Dec 2017 11:12:45 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241531#post2241531</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241530#post2241530</link>
          <description><![CDATA[<p>Hi, Leo.</p>
<p>I tried this on a copy of my page, but the background image doesn't seem to be showing up: <a href="http://dordanmech.com/projects2.php" rel="nofollow">http://dordanmech.com/projects2.php</a>.</p>
<p>I've attached the relevant files; would you be able to take a look to see where I'm going wrong, please?</p>]]></description>
          <pubDate>Fri, 08 Dec 2017 11:09:11 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241530#post2241530</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241529#post2241529</link>
          <description><![CDATA[<p>Hi,</p>
<p>So in your example of html, I assume "#subheaderprojects" is the element needs a background. You can add an img tag anywhere under the element's child level (preferably right after the parent tag):</p>
<p><code>&lt;section id="subheaderprojects"&gt;<br />  &lt;img class="background-img" src="&lt;?php echo $imgUrl ?&gt;"&gt;<br />...<br />&lt;/section&gt;</code></p>
<p>Then you can apply following styles to the wrapper and background elements:</p>
<p><code>#subheaderprojects{<br />  position: relative;<br />  overflow: hidden;<br />}<br /><br />#subheaderprojects .background-img{<br />  position: absolute;<br />  z-index: -1;<br />}</code></p>
<p>Now you can choose how #background-img gets displayed and how #subheaderprojects contains it. Here is an example:</p>
<p><code>#subheaderprojects{  <br />  position: relative;<br />  overflow: hidden;<br />  height: 0; <br />  padding-bottom: 70% /* The ratio of height / width */<br />}<br /><br />#subheaderprojects .background-img{  <br />  position: absolute;  <br />  z-index: -1;<br />  width: 100%;<br />}</code></p>
<p>You can also make the background image height based. Let me know if you got any questions!</p>]]></description>
          <pubDate>Thu, 07 Dec 2017 15:57:35 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241529#post2241529</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241528#post2241528</link>
          <description><![CDATA[<p>Hi, Leo. </p>
<p>If I wanted to use option #1, where should I put the &lt;img&gt; tag, please?</p>

<p><code>&lt;section id="subheaderprojects"&gt;<br /> &lt;div class="container"&gt;<br /> &lt;div class="row"&gt;<br /> &lt;div class="col-md-12"&gt;<br /> &lt;h1&gt;&lt;?php echo htmlencode($projects_introductionRecord['title']) ?&gt;&lt;/h1&gt;<br /> &lt;/div&gt;<br /><br /> &lt;!-- divider --&gt;<br /> &lt;div class="col-md-12"&gt;<br /> &lt;div class="divider-page"&gt;<br /> &lt;div class="divider-img-right"&gt;<br /> &lt;/div&gt;<br /> &lt;/div&gt;<br /> &lt;/div&gt;<br /><br /> &lt;div class="col-md-12"&gt;<br /> &lt;ul class="subdetail"&gt;<br /> &lt;li&gt;&amp;nbsp;&lt;/li&gt;<br /> &lt;/ul&gt;<br /> &lt;/div&gt;<br /> &lt;/div&gt;<br /> &lt;/div&gt;<br /> &lt;/section&gt;</code></p>

<p>Thanks!</p>]]></description>
          <pubDate>Thu, 07 Dec 2017 15:06:46 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241528#post2241528</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241524#post2241524</link>
          <description><![CDATA[<p>Hi,</p>
<p>You can do it in two ways:</p>
<p>1. instead of making the image background of the element, use &lt;img&gt; tag that is contained by the element to act as a background. Then you can define src for that img tag</p>

<p>2. move the style to the php file, and you can modify it like this:</p>

<p><code>&lt;style&gt;<br />#subheaderprojects {padding-bottom: 70px;background: #222;background: url(&lt;?php echo $imgUrl ?&gt;)top fixed;}<br />&lt;/style&gt;</code></p>

<p>Hope it helps and let me know if you have any questions! </p>]]></description>
          <pubDate>Thu, 07 Dec 2017 10:23:32 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241524#post2241524</guid>
        </item>
                <item>
          <title>Re: Updating the css file</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2241522#post2241522</link>
          <description><![CDATA[<p>In response to: [url "<a href="https://www.interactivetools.com/forum/forum-posts.php?postNum=2239733#post2239733" rel="nofollow">https://www.interactivetools.com/forum/forum-posts.php?postNum=2239733#post2239733"]Updating</a> the css file[/url], ...</p>
<p>I have the following code in a stylesheet, which is to display the background image in the masthead (top) area of the page. I want to replace the <span><em>../img/bg-subheader-projects.jpg</em> section with CMSB code.</span></p>
<p><code>#subheaderprojects {<br /> padding-bottom: 70px;<br /> background: #222;<br /> background: url(../img/bg-subheader-projects.jpg)top fixed;<br /> }</code></p>
<p>This is the code generated by CMSB:</p>
<p><code>&lt;?php foreach ($projects_introductionRecord['main_image'] as $index =&gt; $upload): ?&gt;<br /> &lt;img src="&lt;?php echo htmlencode($upload['urlPath']) ?&gt;" width="&lt;?php echo $upload['width'] ?&gt;" height="&lt;?php echo $upload['height'] ?&gt;" alt="" /&gt;<br /> &lt;?php endforeach ?&gt;</code></p>
<p>Please can you tell me how to integrate these? This is how the page is supposed to look: <a href="http://dordanmech.com/projects2.php" rel="nofollow">http://dordanmech.com/projects2.php</a></p>]]></description>
          <pubDate>Thu, 07 Dec 2017 07:46:13 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2241522#post2241522</guid>
        </item>
              </channel>
    </rss>
  