Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
New to webdesign, cant get images to show up
Old 04-17-2011, 02:59 PM New to webdesign, cant get images to show up
Novice Talker

Posts: 7
Trades: 0
So I'm new to webdesign, really new.

I recently started trying to follow tutorials about it but I'm having a hard time. I'm following one of those photoshop to html/css guides and even right at the beginning already having trouble.

The guide says to insert the image that you saved and do it like so.


<img src=”images/name of image.png” alt=”name of image” />

For my image it's like this.

<img src=”images/light-box.png” alt=”light-box” />

And it never shows up, it's just a broken image. It appears like this with any image I put in.

My folder structure is like this.

Images
Index.html
style.css

I've tried other browsers and it's the same thing.

What am I doing wrong here?


This is the code from the guide. Basically this guide in this part is trying to get you to insert a logo from a sliced up psd and the logo will be a link to the home page.


<div id=”container”>
<div id=”header”>
<ul id=”nav”>
<li id=”li_home” class=”selected”></li>
<a href=”index.html”>Home</a>

<li id=”li_work”><a href=”work.
html”>Work</a></li>

<li id=”li_about”><a href=”about.
html”>About</a></li>

<li id=”li_contact”><a href=”contact.
html”>Contact</a></li>

</ul>

<div id=”slogan”>

<h1><a href=”index.html”>Light Box</a></h1>


<img src=”images/light-box.png” alt=”Light Box” />

<p>Hi, we’re LightBox, a completely
made up design agency that specializes in fresh, clean web
design and graphics. <a href=”about.html”>Find out more.

<a></p>
</div><!-- end slogan-->
</div><!-- end header-->

So what exactly is the issue, did he miss a step? This guide is from jeff way from nettuts an established designer so I cant see that he missed something simple like this.
jesbweb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-17-2011, 03:23 PM Re: New to webdesign, cant get images to show up
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Add a forward slash to the image path to make it root relative.

/images/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-17-2011, 03:47 PM Re: New to webdesign, cant get images to show up
Novice Talker

Posts: 7
Trades: 0
That does nothing either.
jesbweb is offline
Reply With Quote
View Public Profile
 
Old 04-17-2011, 04:40 PM Re: New to webdesign, cant get images to show up
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Correct the case of the path to /Images or change the foldername to images
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-17-2011, 05:18 PM Re: New to webdesign, cant get images to show up
Novice Talker

Posts: 7
Trades: 0
I don't understand what you mean by correct the case of the file path. I posted my directory of my folders and files, what is the issue of the file path?

I have a images folder containing my images, than a index and css file above it.

How do I get these images to show? I tried just about everything and nothing is working.
jesbweb is offline
Reply With Quote
View Public Profile
 
Old 04-18-2011, 06:54 AM Re: New to webdesign, cant get images to show up
Kelpie's Avatar
Skilled Talker

Posts: 82
Name: Andrew
Location: SW Scotland
Trades: 0
Quote:
Originally Posted by jesbweb View Post
correct the case of the file path
Upper case / Lower case. The directory structure you listed showed your images directory is "Images" whereas the file path (the src attribute in the img tag) is to a directory called "images". As ChrisHirst said you have to rename one or the other so that they match.
Kelpie is offline
Reply With Quote
View Public Profile
 
Old 04-18-2011, 01:17 PM Re: New to webdesign, cant get images to show up
Super Moderator

Posts: 1,584
Location: Kokkola, Finland
Trades: 1
it's always better to keep everything lower case and don't have spaces in filenames (you can use names-like-this.html or names_like_this.html)
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 04-18-2011, 08:40 PM Re: New to webdesign, cant get images to show up
Novice Talker

Posts: 7
Trades: 0
I'm sorry for the confusion, but I actually do have all my files and everything in lower case. My post wasn't typed out right, but that's not how I saved them. Everything is saved in lowercase, I'm aware of that being the best way of saving everything.
jesbweb is offline
Reply With Quote
View Public Profile
 
Old 04-19-2011, 12:39 AM Re: New to webdesign, cant get images to show up
Super Moderator

Posts: 1,584
Location: Kokkola, Finland
Trades: 1
ah ok
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 04-19-2011, 05:52 AM Re: New to webdesign, cant get images to show up
Kelpie's Avatar
Skilled Talker

Posts: 82
Name: Andrew
Location: SW Scotland
Trades: 0
I can think of 2 possible reasons why your page isn't linking to the image

Possibility #1
the quotes in index.html are as they appear in your post, ” instead of "
Solution: search and replace all instances of ” with "

Possibility #2
light-box.png is not in the images folder, it's been saved somewhere else instead
Solution: hmm, maybe save it in the right folder?
Kelpie is offline
Reply With Quote
View Public Profile
 
Old 04-19-2011, 07:00 AM Re: New to webdesign, cant get images to show up
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Better still


provide a LINK so we can stop guessing at what might be wrong
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-19-2011, 12:47 PM Re: New to webdesign, cant get images to show up
Novice Talker

Posts: 7
Trades: 0
Quote:
Originally Posted by Kelpie View Post
I can think of 2 possible reasons why your page isn't linking to the image

Possibility #1
the quotes in index.html are as they appear in your post, ” instead of "
Solution: search and replace all instances of ” with "

Possibility #2
light-box.png is not in the images folder, it's been saved somewhere else instead
Solution: hmm, maybe save it in the right folder?
It's not the either of the two. Everything is in lowercase. And light-box.png is in the images folder. But I tested other images in the folder and they don't show up either, it's not an issue of the image not in the right folder.

What exactly can I link you to?

This is my mark up.

HTML Code:
<div id=”container”>
<div id=”header”>
<ul id=”nav”>
<li id=”li_home” class=”selected”><a
href=”index.html”>Home</a></li>
<li id=”li_work”><a href=”work.
html”>Work</a></li>
<li id=”li_about”><a href=”about.
html”>About</a></li>
<li id=”li_contact”><a href=”contact.
html”>Contact</a></li>
</ul>
<div id=”slogan”>

<h1><a href=”index.html”>light-box</a></h1>
<img src="light-box.png" alt="light-box" />

<p>Hi, we’re LightBox, a completely
made up design agency that specializes in fresh, clean web
design and graphics. <a href=”about.html”>Find out more.
</a></p>
</div><!-- end slogan-->
</div><!-- end header-->
Here is my directory structure.

images
index
css

Last edited by chrishirst; 04-19-2011 at 02:15 PM..
jesbweb is offline
Reply With Quote
View Public Profile
 
Old 04-22-2011, 04:42 AM Re: New to webdesign, cant get images to show up
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
What exactly can I link you to?

A web page on a web server.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is offline
Reply With Quote
View Public Profile
 
Old 04-22-2011, 05:49 AM Re: New to webdesign, cant get images to show up
Super Moderator

Posts: 1,584
Location: Kokkola, Finland
Trades: 1
yes
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 04-22-2011, 08:04 AM Re: New to webdesign, cant get images to show up
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
Originally Posted by PaulW View Post
What exactly can I link you to?

A web page on a web server.
Just make sure it is your page on your server that shows us the problem.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-22-2011, 11:52 PM Re: New to webdesign, cant get images to show up
gongpex's Avatar
Experienced Talker

Posts: 36
Name: gong
Trades: 0
I think when you put link on your image you not give the value of border
Quote:
for example : <a href="example.html" alt="example">Your image.png</a> (this can cause your image broken)
you should <a href="example.html" alt="example" border="0">Your image.png</a>
I hope this can help
gongpex is offline
Reply With Quote
View Public Profile Visit gongpex's homepage!
 
Old 04-23-2011, 12:18 AM Re: New to webdesign, cant get images to show up
Super Spam Talker

Posts: 879
Name: Paul W
Trades: 0
Quote:
Originally Posted by gongpex View Post
I think when you put link on your image you not give the value of border


I hope this can help
How would adding an invalid attribute to the a href tag improve things?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is offline
Reply With Quote
View Public Profile
 
Old 04-25-2011, 08:43 AM Re: New to webdesign, cant get images to show up
gongpex's Avatar
Experienced Talker

Posts: 36
Name: gong
Trades: 0
when you using image as link for example:

Quote:
<a href=yourlink">YOUR image</a>
withour border="0" it can cause underline at the image,
but in chrome it can't cause the underline.

But in firefox and opera it can
gongpex is offline
Reply With Quote
View Public Profile Visit gongpex's homepage!
 
Old 04-25-2011, 08:46 AM Re: New to webdesign, cant get images to show up
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
How does setting border width to zero affect the underlining of image elements???
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 04-25-2011, 08:58 AM Re: New to webdesign, cant get images to show up
gongpex's Avatar
Experienced Talker

Posts: 36
Name: gong
Trades: 0
you can try it using firefox browser. use image in JPG or PNG
when I still study, I had ever tried to make animation using PNG or JPG image that using margin taq,

and the results can cause underline that same as text when you not use CSS style
text-decoration:none;
--------------------------------------------------------------------------
By the way, why when I post my new thread it always deleted?
please give me answer or explanation
gongpex is offline
Reply With Quote
View Public Profile Visit gongpex's homepage!
 
Reply     « Reply to New to webdesign, cant get images to show up

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.04140 seconds with 12 queries