Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<img /> ATTRIBUTES!!!

Status
Not open for further replies.

e1k4l3cs

MIS
Nov 11, 2002
56
SG
Can somebody give me an idea on how I can use vspace,hspace,align and a few more other <img /> attributes please...

A million thanks in advance...

Kelvin
 
Ermmmmmm..... nonono... sorry... I left out some thing...

My Qn. is:

Can somebody give me an idea on how I can use vspace,hspace,align and a few more other <img /> attributes using Style please...
 
Oh. I see your problem. To use styles, change your <img /> to <img style=&quot;styles_you_want&quot; />. For hspace,vspace, use margins:
margin:12px 8px 5px 7px;
The correct sequence is top,right,bottom,left.
Or you could do this:
margin-top:12px;
margin-bottom:8px;
margin-left:5px;
margin-right:7px;
For align, simply do:
align:top;
other values allowed:
bottom, middle, left, right

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top