File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Image width and height in CSS? 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 "Image width and height in CSS?" Watch "Image width and height in CSS?" New topic

Image width and height in CSS?

Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756

What is the equivalent CSS code of the following HTML ?

I am succeed in calling Image via CSS in my JSP but unable to set the
image width and height in CSS as in above HTML. Plz. help.

I am using following CSS code:

[ June 30, 2004: Message edited by: Vikrama Sanjeeva ]

Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
By using the background to place an image you are not able to adjust the height. If you just leave the image tag like it is you can use style="width:100px;height:100px"

I agree. Here's the link:
subject: Image width and height in CSS?
It's not a secret anymore!