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 5 of 5
  1. #1
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    842
    Thanks
    15
    Thanked 9 Times in 9 Posts

    CSS Background-Image Path?

    Code:
    .catrow { font-weight:bold; height:24px; line-height:150%; color:#4C77B6; background-image: url(imgs/main/main_bg.gif); }
    Got me the nice code above... however the image does not show on the PHP page I have. The path goes directly to the image and if I use:
    Code:
    <td background="imgs/main/main_bg.gif">
    It works fine. Why can't I see it with the CSS?
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Can we see your html for the page also, or just give us a link?

  • #3
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    842
    Thanks
    15
    Thanked 9 Times in 9 Posts
    http://www.dni-server.no-ip.com/scri...unt1_1/add.php

    Once it's all finished she will be password protected
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I can't see why it wouldn't work, but you may want to check out and see what the validator says here
    you have some parse errors, and some errors, because you are trying to use some CSS that doesn't even exist. This could also be a server error, because according to Firefox, the background image in that cell is pointing to here
    http://www.dni-server.no-ip.com/scri...in/main_bg.gif so you may have to go back a few directories, possibly one directory, because the images are in relation to the CSS file not your actual page so instead of
    Code:
    .catrow { font-weight:bold; height:24px; line-height:150%; color:#4C77B6; background-image: url(imgs/main/main_bg.gif); }
    try
    Code:
    .catrow { font-weight:bold; height:24px; line-height:150%; color:#4C77B6; background-image: url(./imgs/main/main_bg.gif); }
    Last edited by _Aerospace_Eng_; 04-22-2005 at 12:59 PM.

  • #5
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    842
    Thanks
    15
    Thanked 9 Times in 9 Posts
    Well, if it is in relation to the css directory that would be my problem...
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com


  •  

    Posting Permissions

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