View Single Post
Old 10-12-2012, 02:25 AM   PM User | #2
truetech
New to the CF scene

 
Join Date: Nov 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
truetech is an unknown quantity at this point
Unhappy

Was just doing a little more testing, and realized that maybe the problem is that I am not properly specifying where the files are located. The inline style just has an image url of postID.png, which would suggest it finds the file in whatever folder the page is currently being loaded from. Now I am trying to code the inline style to spell out the path, but I can't seem to find the right syntax. I've tried:

[CODE]
<header id="branding" role="banner" class="clearfix" style="background-image: url(c:/wamp/www/nhpn/<?php echo $post->ID; ?>.png);">
[CODE]

and this:

[CODE]
<header id="branding" role="banner" class="clearfix" style="background-image: url(/nhpn/<?php echo $post->ID; ?>.png);">
[CODE]

and this:

[CODE]
<header id="branding" role="banner" class="clearfix" style="background-image: url(localhost/nhpn/<?php echo $post->ID; ?>.png);">

As you can see, i'm workiing with a local WAMP server right now, but I'll be doing it again on a hosted site. The main page loads at localhost/nhpn.

Am I on the wrong track? I've spent upwards of 3 hours on this now, and it's reallly getting annoying!
truetech is offline   Reply With Quote