File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Image width and height in CSS?" Watch "Image width and height in CSS?" New topic
Author

Image width and height in CSS?

Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756
Hi,

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:


Bye,
Viki.
[ 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 http://groups.yahoo.com/group/IBM340Exam/
Eric Pascarello
author
Rancher

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


Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image width and height in CSS?
 
Similar Threads
set a picture as a background
table cells not aligning
Display footer on resize
CSS not getting applied
Scroll table within a table not working