Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Internet Explorer background image problem

    Hello,

    I'm using IE 8 and having problems with my web site colors disappearing when I resize smaller, not larger.

    I use a very simple html table layout (no css) with a tiny gif file for the color of a column, for example.<td width="187" height="499" background="assets/images/dkgreen10pix.gif"></td>

    No problems with enlarging or reducing in firefox or safari however.

    thanks for any advice!

    PhotoDoc

  • #2
    Regular Coder kosstr12's Avatar
    Join Date
    Apr 2007
    Location
    Woodstock, Georgia
    Posts
    428
    Thanks
    7
    Thanked 5 Times in 5 Posts
    Link to the page, and all of your source.


    Thanks,
    Koss


    EDIT:
    Oh, and trying changing the above code to this:
    Code:
    <td width="187" height="499" background="/assets/images/dkgreen10pix.gif"></td>

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    I use a very simple html table layout (no css) with a tiny gif file for the color of a column, for example.<td width="187" height="499" background="assets/images/dkgreen10pix.gif"></td>
    You shouldn't ever use tables for layout or deprecated attributes like background,width height.

    Know why tables for layout is stupid and get inspired by the beauty of CSS based design from CSS-Zen garden
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    does it in both CSS and good 'ole html.

    http://qtprolong.com/grncss.htm

    http://qtprolong.com/grn.htm

    thanks

  • #5
    New to the CF scene
    Join Date
    Mar 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IE won't display background image

    OK - Here's the CSS code that leads to the same problem

    Code:
    .thrColFixHdr #sidebar1 {
    	float: left; 
    	width: 150px; 
    	padding: 15px 10px 15px 20px; 
    	background-image:url(/assets/images/dkgreen10pix.gif)
    it's a very small GIF image designed to give me a particular color for this column

    thanks!

  • #6
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by photodoc View Post
    Hello,

    I'm using IE 8 and having problems with my web site colors disappearing when I resize smaller, not larger.

    I use a very simple html table layout (no css) with a tiny gif file for the color of a column, for example.<td width="187" height="499" background="assets/images/dkgreen10pix.gif"></td>

    No problems with enlarging or reducing in firefox or safari however.

    thanks for any advice!

    PhotoDoc
    I'm not seeing the issue at all. Checked in FF3, IE8 and IE7...
    Have a look at a faux columns example of a 3-column layout that might work better for you - http://nopeople.com/CSS/3-column/index.html
    This is the image that makes the columns:








    and it's is loaded by the bit in red -
    Code:
    #wrap {
    	width: 804px;/*800px wide contents plus 2px borders*/
    	margin: 20px auto; /*places #wrap 20px down and centered*/
    	overflow: auto; /*to clear the floats*/
    	background: url(bg.jpg) repeat-y;
    }
    Doing it that way lets the longest column set the height for all the columns, even if they're empty.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad


  •  

    Tags for this Thread

    Posting Permissions

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