Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Background "Watermark" Image - IE issueBackground "Watermark" Image - IE issue
Previous
 
Next
New Post
5/3/2011 2:15 PM
 
Hello..
I have a skin (on our development server, so it can't be seen from externally) in which the "Content_Area" div has two areas, a "left_side" and a "right_side" divs.  Within the "right_side" div, I have another three divs; ContentPane, LeftContentPane and RightContentPage; see skin code below.
Within the skin.css file, I have the background for the "right_side" div as follows:

#right_side
{
border-top-style: ridge;
border-top-width: thin;
height: 585px;
background: #fffcee url('images/street.png'); /* no-repeat;*/
width: 800px;
float: right;
overflow-x: auto;
}

I added new html modules with filler text to the page in the three content areas; enough so the vertical scroll bar appears.  If I view the site in any browser (opera, chrome, or firefox) except IE9, the background image stays "locked-in" while I scroll the content to the bottom of the page.
Yet, as expected, IE doesn't do the same.  The vertical scroll scrolls the background image as well as the content text.  I want the background image to stay "locked-in" while scrolling so it give the page a watermark look; no matter what browser is being used.
How would I tell only IE to keep the background image stable while scrolling?  For now, as you can see above, I've turned off the no-repeat so at least there is a background image instead of just the background color when viewed in IE.
Thanks.. -Jeff

Skin code:
<div id="content_area">
<div id="left_side">
<div class="left_sidebar" id="LeftSideBar" runat="server" visible="false"></div>
</div>

<div id="right_side">
<div class="center_column" id="ContentPane" runat="server" visible="false"></div>
<div class="left_content" id="LeftContentPane" runat="server" visible="false"></div>
<div class="right_content" id="RightContentPane" runat="server" visible="false"></div>

<div style="clear: both;"></div>
</div>
 </div>
 
New Post
5/3/2011 5:31 PM
 
Try this...

#right_side {
border-top-style:ridge;
border-top-width:thin;
height:585px;
background:#fffcee url('images/street.png');
width:800px;
float:right;
overflow-x:auto;
background-repeat:no-repeat;
background-attachment:fixed;
background-position:center; /*adjust for your needs*/
}



Steven Webster
Manager, Community Platform
F5 Networks, DevCentral
 
New Post
5/3/2011 5:40 PM
 

Jeff,

Steven's code should work for you, the bit you are missing is the background-attachment, it appears that for most browsers this defaults to fixed, whereas IE must default to scroll.

The shorthand for the code would be:

background: #fffcee url('images/street.png') fixed no-repeat center;

Regards,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Background "Watermark" Image - IE issueBackground "Watermark" Image - IE issue


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out