• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

[Resolved] Display an Image

 
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic