473,394 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

adding image to header

Hi,

I've been looking around to find out how to add an image as a header to my page and none of them really seemed to work. I'm wondering if it's something to do with where I placed the image. Mine is a jpeg image. I currently have this for my actual code:

Expand|Select|Wrap|Line Numbers
  1. <div class="leftmenu">
  2. <?php include("header.php"); ?>
  3. //i was wondering where this header.php is supposed to be as well..
  4. </div>
  5.  
and this is what i have in header.php
Expand|Select|Wrap|Line Numbers
  1. <img src="/home/vchan/ts2/logo.jpg"
  2. width="100" height="50"/>
  3.  
I am able to see a white box but not the actual picture. Thanks for the help.
Jun 11 '09 #1
3 1941
Dormilich
8,658 Expert Mod 8TB
I guess your server root points to something like /var/www. so the browser will assume that as your root directory. try locate the image through your browser (using http:// not file://). use that path to refer to the image.

or put the image under the server root directory.
Jun 11 '09 #2
cool! I changed it to the http way and it works. Thanks!=)
Jun 11 '09 #3
Dormilich
8,658 Expert Mod 8TB
glad you got it working now. :)
Jun 11 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Pierre Tremblay | last post by:
Hi! I am trying to display an image in my html document. The document contains the following line: <td class="Input"><img...
0
by: johkar | last post by:
If you add a background image to a link, the spinning Microsoft logo stops spinning in IE 6 after you click the link and move the mouse off it. Most people never notice this, but in applications...
0
sketchgrrl
by: sketchgrrl | last post by:
I'm using IE to build a GoDaddy.com Website Tonight site. I want to add a background image (probably a repeating one to make sure it covers all the empty spaces behind the images on the page...
1
by: swc76801 | last post by:
I desperately need help. My understanding of CSS is non-existent. I have a store http://astore.amazon.com/texasheat-20 with Amazon.com. According to the information from Amazon.com "Write your own...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.