WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Problem with relative links to pictures in template
  • Print
Pages: [1]   Go Down

Author Topic: Problem with relative links to pictures in template  (Read 3669 times)

paljasken

  • Guest
Problem with relative links to pictures in template
« on: August 24, 2008, 10:20:36 AM »
I've encounterd a problem with the images that I use i my templates every time I make one. If I make the links to the images relative, they don't show up.

For instance, for the background of a table i enterd the following:
<td  width="225" style="background: url(header_logo.png) top right no-repeat">

As you can see on this page: http://www.tekenidee.be/wb/pages/test-popups/testpage.php the logo doesn't show. As you can see here, the logo is right in place.

I've always solved my problems by putting the whole URL in front of it, but that makes it hard to test the templates on other websites of copy parts of the template for new projects.

What do I do wrong?
Logged

vyni

  • Guest
Re: Problem with relative links to pictures in template
« Reply #1 on: August 24, 2008, 11:53:13 AM »
Hi,
You shouldn´t enter this in the template itself, do it in Your css-file. For things like this it is born.

In Your template type something like this: <td class="topofsite"> and in your css .topofsite { background-image......}
and all the rest.
Your screen.css right now is very poor, and Your logo cannot show up, because WB doesn´t know if it exists.

regards from Himberg, next to Vienna
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Problem with relative links to pictures in template
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2