GeeCON Prague 2014*
The moose likes HTML, CSS and JavaScript and the fly likes [Resolved] Display an Image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "[Resolved] Display an Image" Watch "[Resolved] Display an Image" New topic
Author

[Resolved] Display an Image

Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Aug 29, 2003
Posts: 202
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
set the border to zero (probably have a link around it?)

Eric
Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
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

Joined: Aug 29, 2003
Posts: 202
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

Joined: Jan 27, 2004
Posts: 71
Why don't you set your image with no border.



--Nimchi
Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
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.
 
GeeCON Prague 2014
 
subject: [Resolved] Display an Image