Malioglasnik.com.hr

[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
How can I make a picture larger or smaller using just HTML?
BassoDate: Tuesday, 2010-09-21, 5:54 PM | Message # 1
Group: Moderator
Messages: 1637
Awards: 2
Reputation: 695
Status: Offline

How can I make a picture larger or smaller using just HTML?


Simply! Just change the values in the HEIGHT and WIDTH attributes of the IMG tag. Be mindful of what is called the aspect ratio. The example below is a perfect square. It is actually a 40x40 icon, but I show it as 20x20, 80x80, and 120x120. If your graphic is 400 wide by 40 high, it has one unit of height for every ten of width. So if you wanted to make it a bit bigger, you could try 500x50 or 440x44. Hmmm, what if we did 100X25??


REMEMBER TO ALWAYS SET YOUR WIDTH &am HEIGHT VALUES. This is important. Many browsers can't show anything until they know where all the pieces of your page are going to fall.



example:






source code:


Code
<IMG SRC="/images/left.gif" HEIGHT="20" WIDTH="20" BORDER="0">
<IMG SRC="/images/left.gif" HEIGHT="40" WIDTH="40" BORDER="0">
<IMG SRC="/images/left.gif" HEIGHT="80" WIDTH="80" BORDER="0">
<IMG SRC="/images/left.gif" HEIGHT="120" WIDTH="120" BORDER="0">
<IMG SRC="/images/left.gif" HEIGHT="25" WIDTH="100" BORDER="0">
 
If you have a problem about Intellectual property rights violation,

Please Contact Us we remove all content within 24 hours.



  • Page 1 of 1
  • 1
Search:
Forum Advice
Security advice: Protect your identity when downloading!
Your real identity and ip address is visible while downloading. These days, everyone's looking to throttle your connection, spy on what you're downloading, or even send you an ominous letter. If you use BitTorrent, you absolutely need to take precautions to hide your identity. An easy and raliable solution is a VPN by hide.me. Hide.me doesn't store any logs and offers blazing fast connections.Hide.me VPN is trustedby more than 500.000 internet users worldwide and recommended by Brna.my1.ru.