Results 1 to 6 of 6

Thread: Background-repeat not working in IE6

  1. #1
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Background-repeat not working in IE6

    Hi,

    I am not able to get background-repeat work in IE6. Given below is the CSS class
    Code:
    .flyoutBody .leftBorder {
    	background-color: #ffffff;
        background: url(../../images/Module_LeftSide.gif) top left repeat-y;
        border-width: 0px;
        min-height:50px;
        position:absolute;
        overflow:hidden;
        height:100%;
        width: 1px;
    }
    Any help is appreciated.
    Last edited by Snookerman; 04-22-2009 at 08:27 AM. Reason: added [code] tags and “Resolved” prefix

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    That is because height:100% won't work in IE6. Try adding this piece of code to the head section of your page:
    Code:
    <!--[if lt IE 8]>
    <script src="http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js" type="text/javascript"></script>
    <![endif]-->
    That should fix many css problems that IE has.

    Good luck!

  3. #3
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the reply.

    it did not work. It works fine if i give a fixed height to the page. But i need to get it work for dynamic height based on the content.

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Please post a link to the page on your site that contains the problematic script or attach your code so we can check it out and help you.

  5. #5
    Join Date
    Jan 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I fixed it by explicitly setting the height for the style after the page loaded. Thanks for pointing me to the height attribute.

  6. #6
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You're welcome, glad to help! Strange that it didn't work with the conditional comment for you, I just tested it and it worked fine for me.

    Anywho, if you're happy with the solution, you can go to your first post in this thread, click then click Go Advanced and add the Resolved prefix to the thread title. This will let other users know the problem has been solved.

    Good luck with your site!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •