i created css clock at the file themes->pushbutton->style.css

#image-home {
    background: #000000 url(gradient_sky.png) left top repeat-x;
}

then i called it from /themes/pushbutton/page-front.tpl.php on a table such as:

   <table id="image-home" border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                      <td valign="top">
                        <span><img src="themes/pushbutton/cognovis_home.jpg" align="right" alt="image home" border="0" /></span>
                      </td>
                    </tr>
                  </table>

Somehow, background color works fine but url doesn't.
I already check thousand times. The image is there and the path is correct. but the image does not load up.

any clues?

Comments

MattenMad’s picture

Try this

background-image: url(gradient_sky.png);
background-position: left top;
background-repeat: repeat-x;
background-color: #000000;

That should work!

agarwal.sudhanshu’s picture

Where you uploaded the gradient_sky.png ?
Check if you used correct path for background image in style.css.

jaypan’s picture

Is the image in the same folder as style.css?

Contact me to contract me for D7 -> D10/11 migrations.

iurisampaio’s picture

My mistake!
once new files (images) are uploaded in the directory by default they inherit denied permissions to all users.

I fixed this problem. CSS works fine now!
I guess after 12 hours in front of the computer my brain started to fail!
A nice nap is always welcome!

Thanks a million