Raised This Month: $ Target: $400
 0% 

HTML Image question


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dizzy
Veteran Member
Join Date: Jun 2004
Location: Massachusetts
Old 03-22-2008 , 13:01   HTML Image question
Reply With Quote #1

When you use the <img> tag in HTML you obviously fill out the src value and sometimes, not all, use the width and height values.

When an image is too large for the site and you want all the images (varying from different sizes) to be half the size, is there a way to do this without using calc.exe to find that a 974x562 image is 487x281 and plugin it in where the next image is 1232x834...

I was thinking possibly to do this:

Code:
<img src="images/art.jpg" width="1232/2" height="834/2" alt="Artwork" border="0">

<img src="images/art.jpg" width="1232*.5" height="834*.5" alt="Artwork" border="0">
But, with doubt, I was sure these wouldn't work, but I was wondering if there was a way to do this?
__________________
My Plugins

Purchase Mod - Stable
Type Sounds - Stable
Monster Spawner - Stable
Nade Giver - Maintenance
Dizzy is offline
Send a message via AIM to Dizzy
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode