Page 1 of 1

Newbie to PHP coding, stuck with simple error

Posted: Tue Sep 27, 2005 7:44 am
by richaldridge

Code: Select all

<td width="600" align="left" style="background-image:url(../images/cellpic_bkg.jpg) repeat-x; "><a href="../"><img src="../images/logo.jpg" width="240" height="110" border="0" /></a></td>
Hi,

The code above does not produce the output required. The image files are present and correct, but as I am new to coding maybe there I have missed?

Thanks in advance!

Regards,
Richard

Posted: Tue Sep 27, 2005 7:46 am
by feyd
there's no php in your posted code. :?

Posted: Tue Sep 27, 2005 7:53 am
by richaldridge
My apologies - I was working on a PHP file at the time, forgetting that I had a CSS file in the background.

Tiredness sets in when you are given 2 hours to correct errors on someone else's work when you are exceedingly new to PHP!

Thanks for the quick reply though!

Posted: Tue Sep 27, 2005 8:49 am
by $var
i think that you are missing something between
"background-image:url(../images/cellpic_bkg.jpg) repeat-x;"

try:
"background-image:url(../images/cellpic_bkg.jpg); repeat-x; "

Posted: Tue Sep 27, 2005 11:03 am
by s.dot
$var wrote:i think that you are missing something between
"background-image:url(../images/cellpic_bkg.jpg) repeat-x;"

try:
"background-image:url(../images/cellpic_bkg.jpg); repeat-x; "
it would be

Code: Select all

background-image: url('../images/celpic_bkg.jpg'); // notice the single quotes
background-repeat: repeat-x; // repeating the background requires the background-repeat: call, unless you're doing it all from background: