Jump to:

3439 Posts in 1028 Topics by 869 members

Template Questions

SilverStripe Forums » Template Questions » Background not rendering right in IE

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 2359 Views
  • jfusco
    Avatar
    Community Member
    52 Posts

    Background not rendering right in IE Link to this post

    The background of the content section isn't rendering properly in Internet Explorer. It comes down part way, then stops. It looks fine in FireFox and Opera. Any ideas? Any ideas where I should look?

    http://www.unclebubby.com/wavs2/

    Thanks,
    Joe

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Background not rendering right in IE Link to this post

    This is a question about CSS styling, so not really relevant to this forum, however I think it is because you have 'height: 100%' in your layout stylesheet. You shouldn't need that there, and it might be causing it to only repeat for the viewport, rather than the whole page.

    By the way, are you aware that each of your stylesheets are included twice in the head? You don't need to add them to Page.SS if you already have a Requirements::CSS for that stylesheet.

  • jfusco
    Avatar
    Community Member
    52 Posts

    Re: Background not rendering right in IE Link to this post

    Thank you for your response and the tip on the duplicate CSS. I never would have caught that.

    The only parts of my layout.css that have height: 100% are

    /* Global Resetting */
    html{   
       width: 100%;
       height: 100%;
       background:url(../images/body_bg.gif) repeat;
    }
    body {
       width: 100%;
       height: 100%;
       font-size: 62.5%;


    I took the file directly from the tutorial. It -was- working but it broke at some point. I only made a couple of changes, including changing the background pic, but I'm not sure when it broke because I wasn't using IE to peview.

    In which forum would this be appropriate? Isn't CSS part of the template?

    Thanks again,
    Joe

  • jfusco
    Avatar
    Community Member
    52 Posts

    Re: Background not rendering right in IE Link to this post

    It appears that it is NOT a problem with Layout.css. For testing purposes, I switched back to the original file and it did the same thing. And there's a new development - the admin login screen isn't showing the labels for the input fields.

    Oh, and while the original link will get you there via a redirect, the URL is http://wavs.unclebubby.com

    Anyone... anyone...

    Thanks,
    Joe

  • jfusco
    Avatar
    Community Member
    52 Posts

    Re: Background not rendering right in IE Link to this post

    (bump)

  • jfusco
    Avatar
    Community Member
    52 Posts

    Re: Background not rendering right in IE Link to this post

    I don't know where this went wrong since I was working exclusively in FireFox when I set it up. That is making the process more difficult. Today, I did some experimentation and here's what I've come up with (it's still not resolved).

    First, I performed a second installation of SS in another directory. That installation (http://www.unclebubby.com/sstest) looks okay, although it's the barebones tutorial install and I haven't added anything to it. That tells me it's probably not something with the server (although it could be an issue with the installation, I suppose).

    Next, I removed all of my includes one-by-one. No change.

    I know it's something global because it doesn't matter which page type I'm looking at. With that in mind, I copied the freshly installed page.php file. No change. I copied the freshly installed layout.css then typography.css. No change. I may repeat this experiment and rebuild the database in between steps just to be sure.

    The problem install is at http://wavs.unclebubby.com. Does anybody have ANY clues or other troubleshooting suggestions?

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: Background not rendering right in IE Link to this post

    Have you tried posting your questions on a CSS forum? It sounds like your problems are related to CSS and aren't really tied to any SilverStripe-specific issues, so you could probably get access to a higher concentration of CSS-gurus that way.

  • jfusco
    Avatar
    Community Member
    52 Posts

    Re: Background not rendering right in IE Link to this post

    I was doing some testing and going through the tutorials again. I noticed that one of the page.ss file examples didn't show the line:
    <?xml version="1.0" encoding="UTF-8"?>
    at the top of the file... so I deleted it on my production site. When I checked it in IE... it looked fine. Odd thing is, I put the line back in, flushed the cache... and it still looked fine. It broke some other things so I left it out in the end.

    I don't know what fixed it but I'm just going to go with it. Thanks for the help.

    2359 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.