Page 1 of 1

making images relative in size

Posted: 14 Apr 2008, 20:19
by DarkRanger
Hi guys,

Just want to know how I can make images relative with size in a HTML page. I am only allowed to use basic HTML code.

If I resize, the images must also resize to still be lets say 30% of the window size.

Thanks.

Posted: 14 Apr 2008, 20:38
by doo_much

Code: Select all

<img border="0" src="your_background.jpg" width="###%" height="###%"></p>

Posted: 14 Apr 2008, 21:11
by DarkRanger
that doesn't work. it makes the images x% of it's current width and height! thats the first thing I tried.

Posted: 14 Apr 2008, 21:28
by DarkRanger
sorted:

Code: Select all

<img scr="******.jpg" style="position:relative;widht:***%;height:****%>

Posted: 14 Apr 2008, 21:39
by Anthro
Nicely done//
Where'd you get the solution ?

Posted: 28 Apr 2008, 14:09
by DarkRanger
I answered my own question after reading my topic again and again... :-P

Another question. Any way I can specify that the image should not resize larger than it's original width and height (lets say 400px wide an 500px high)?

changed that to Any way..otherwise it durrent maketh sense
-Anthro

Posted: 28 Apr 2008, 14:14
by DarkRanger
Damn Anthro you're quick... BTW: What did I say??

Posted: 28 Apr 2008, 14:30
by Anthro
You just had it as Anyway, read it like that and it wont make sense at all
Anyway I can specify that the image should not resize larger than it's original width and height (lets say 400px wide an 500px high)
:wink:

Posted: 28 Apr 2008, 20:16
by DarkRanger
Haha, translate that to afrikaans.
DarkRanger's screw up in Afrikaans wrote:Elkgeval kan ek spesifiseer dat die prent nie moet van groter word as sy oorspronklike wydte en hoogte nie (bv. 400px wyd en 500px hoog)
:lol: :lol: Thanks man! waardeur dit! :)