Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Resolved] Display an Image

 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I could not have my image displayed.

I have a statement:


The place where the impage is supposed to be displayed shows a red 'x' and the text 'collapsed'.

I think the web page has found the 'arrow_expanded.gif' file under the 'images' directory because what I specified for the 'alt' attribute is displayed. Am I right?

Then, what is wrong with the image? Why isn't it showing?

Thanks.
[ March 15, 2006: Message edited by: Daniel Gee ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there is an X that means:

The image is not there
You fat fingered the name
You have the relative linking wrong

Eric
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for your advice.

My image is showing now after I fixed the 'path' to find the image.

However, there is a 'box' surrounding the image. The image does not come with a 'box' around it! I am 100% certain.

It does look normal. How do I get rid of that box?
[ March 08, 2006: Message edited by: Daniel Gee ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
set the border to zero (probably have a link around it?)

Eric
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the image is a 'link'.

But, I have A:link{ text-decoration:none; } in my style sheet.

Anyway, I did:

But, the problem persists. I still have a box around that image.
[ March 08, 2006: Message edited by: Daniel Gee ]
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I think that there is a box surrounding my image has something to do with the 'link' tag.

But, things look weird.

OKay, I have a JSP page and a Master.css file.

In the Master.css file, I changed color of some background color and text color. Those color changes reflect in my JSP page. Therefore, I believe the JSP page has found the Master.css. Am I correct?

In the same Master.css file, I have:

but, all the links in my JSP page still have an 'underline'.

Does the box around my image have something to do with the 'underline'? Why my JSP page cannot pick up the {text-decoration:none;} in the Master.css file?
 
Nimchi Yung
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you set your image with no border.



--Nimchi
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric and Nimchi,

You were right. All I have to do is to insert

border="0"

in the <img ....> tag.

I did not refresh the web page; therefore, I thought it did not take care of the problem. Sorry, it was my mistake.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic