By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,396 Members | 1,835 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,396 IT Pros & Developers. It's quick & easy.

dynamic image size

P: 3
Hi - john here -

Can i change html image size dynamically on mouseover so it looks like Mac taskbar ??

------BIG------------------------------------------------------------------------
^

...
-------------BIG-------------------------------------------------------------------
^

...
-----------------------BIG---------------------------------------------------------
^
Mar 13 '07 #1
Share this Question
Share on Google+
3 Replies


Expert 100+
P: 1,892
Hi - john here -

Can i change html image size dynamically on mouseover so it looks like Mac taskbar ??

------BIG------------------------------------------------------------------------
^

...
-------------BIG-------------------------------------------------------------------
^

...
-----------------------BIG---------------------------------------------------------
^
So when you hover over an image you want the size to increase? I'm not familiar with Mac's. Also, what do you mean by dynamically?
Mar 13 '07 #2

P: 3
So when you hover over an image you want the size to increase? I'm not familiar with Mac's. Also, what do you mean by dynamically?
yes - if I have images in a row (i.e. in td-s) i would like

x x x x x

to change into

X x x x x when I hover over the first,

x X x x x when over the second, etc.

I can do it with buttons over the x-s but not by just "mousover / mouseout"-s

http://www.siteexperts.com/tips/elements/ts21/page1.asp
Mar 14 '07 #3

drhowarddrfine
Expert 5K+
P: 7,435
Use the :hover attribute and resize the image there.

img:hover{
height:whateverpx;
width:whateverpx;
}

But that only works in modern browser (not IE6). So you have to make it an anchor.

a:hover{
height:whateverpx;
width:whateverpx;
}
<a><img src=""></a>
Mar 14 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.