Newbie to PHP coding, stuck with simple error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
richaldridge
Forum Newbie
Posts: 2
Joined: Tue Sep 27, 2005 7:38 am

Newbie to PHP coding, stuck with simple error

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

there's no php in your posted code. :?
richaldridge
Forum Newbie
Posts: 2
Joined: Tue Sep 27, 2005 7:38 am

Post 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!
User avatar
$var
Forum Contributor
Posts: 317
Joined: Thu Aug 18, 2005 8:30 pm
Location: Toronto

Post 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; "
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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:
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply