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

Image width and height in CSS?

 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic