Results 1 to 7 of 7

Thread: IE6 vs IE7 display error - background image getting cut off...

  1. #1
    Join Date
    Sep 2007
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default IE6 vs IE7 display error - background image getting cut off...

    Hello. Can someone please help me understand why this page looks fine in IE7 and Firefox, but not in IE6:

    http://www.shootingblanks.net/TEMP/Nevermind/bio.php

    You can see that the background image is completely cut off on the left in IE6, and I'm not understanding why. Here's the CSS code for that div:

    Code:
    #bioContent {
    	background: url(../images/bkgnds/bio.jpg) no-repeat top left;
    	width: 140px;
    	min-height: 550px;
    	float: left;
    	margin: 0;
    	padding: 0;
    }
    Also, there's one other page on the same site that's also behaving oddly only in IE6. The picture is not on the bottom-right like it should be, and it's getting cut off:

    http://www.shootingblanks.net/TEMP/Nevermind/news.php

    Here is the code for that div, if anyone has suggestions on that one too. Thanks!!!:

    Code:
    #newsContent {
    	background: url(../images/bkgnds/news.jpg) no-repeat bottom right;
    	min-height: 400px;
    	text-align: left;
    }

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Hey ShootingBlanks! (you ever going to finish the Riddle Trail )

    USUALLY this is caused by IE's presentation of auto margins and spacing.

    In your CSS, if you start with:

    Code:
    * {
         padding: 0;
         margin: 0;
    }
    It may just clear that up. If not I will have a deeper look at it.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Sep 2007
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    What's up, BLiZZ!!!

    Yep - that did it. Thanks, man!!!


  4. #4
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Awesome! Not that that is fixed, get back to riddling!
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  5. #5
    Join Date
    Sep 2007
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Haha...I wish I had the time!!!

  6. #6
    Join Date
    Sep 2007
    Location
    Maui
    Posts
    642
    Thanks
    284
    Thanked 15 Times in 15 Posts

    Default

    Dear Bliz: I learned css by being thrown into the deep end so never really got the basics. Are you saying that every css file should start with...

    * {
    padding: 0;
    margin: 0;
    }

    I do start my files with: html { margin:0; padding:0; } Is that the same thing? I'm not familiar with * in css. Is it a wildcard that refers to all elements?

    Thanks for being a know-it-all. haha erin

  7. #7
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Aloha. It is a good practice, and is shorter than using body, html {

    Basically, yes the * acts as a catch all.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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
  •