Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,650 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,144 people online right now. Registration is fast and FREE... Join Now!




background-image not appearing

 
Reply to this topicStart new topic

background-image not appearing

musya
post 18 Aug, 2008 - 09:42 PM
Post #1


D.I.C Regular

Group Icon
Joined: 25 Apr, 2007
Posts: 291



Thanked 1 times

Dream Kudos: 50
My Contributions


I have an unusual problem...again.... but anyway now my background-image is not appearing, here is my code for my body tag
html

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="background-color: #cccccc; background-image: url('templates/<?php echo $this->template ?>/images/bg.jpg;'); background-repeat: repeat-x;">


BTW: The image path is correct i double checked it.

This post has been edited by musya: 18 Aug, 2008 - 09:45 PM
User is offlineProfile CardPM

Go to the top of the page

BetaWar
post 19 Aug, 2008 - 04:33 AM
Post #2


#include <soul.h>

Group Icon
Joined: 7 Sep, 2006
Posts: 1,987



Thanked 78 times

Dream Kudos: 1175
My Contributions


I am not sure this is the cause, but you may want to try not using the single quotes wrapper, like so:

CODE
<body style="background: url(someimage.jpeg);">
^that works fine when I use it.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 05:09AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month