sandy1028 Posted September 5, 2007 Share Posted September 5, 2007 Hi, Please provide me any links or information regarding how to zoom or increase image size depending on the text. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted September 5, 2007 Share Posted September 5, 2007 images are images... if you want a larger image create one - using the width/height attributes to resize an image is not the way to go - you either use excessive bandwidth or distort the image. there are a few ways I can think of altering images depending on text size BUT they depend on how you are altiering text size. Quote Link to comment Share on other sites More sharing options...
sandy1028 Posted September 5, 2007 Author Share Posted September 5, 2007 Hi, I want to increase the image height depending on the lines in the image. If the lines of text in only one then reduce the image height. I am not familiar with ajax. Is there any other way to proceed with it Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted September 5, 2007 Share Posted September 5, 2007 not sure what you are trying to achieve... maybe a background image? give us a carrot and we may chase it. Quote Link to comment Share on other sites More sharing options...
sandy1028 Posted September 6, 2007 Author Share Posted September 6, 2007 The image for the tooltip. The text in tooltip is dynamic.. Text size increases and decreases Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted September 6, 2007 Share Posted September 6, 2007 ok that was more a squashed piece of very tiny carrot that had been regurgitated by a farm yard animal... how are you altering text size (is a url parameter? javascript? ctrl + in ff or View > Text Size in IE) I know giving out a full explanation is incredibly tiresome but if you don't no-one is going to know exactly what you need. Quote Link to comment Share on other sites More sharing options...
sandy1028 Posted September 6, 2007 Author Share Posted September 6, 2007 Text of the tooltip is about 1 to 5 lines. I have included $tooltip within span and included the image in the CSS Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted September 6, 2007 Share Posted September 6, 2007 thats absolutely great... we shall await such a time when you can actually EXPLAIN HOW you are changing the text size and WHY the hell you need an image resizing... Sorry buddy but as far as I am concerned (not the best decipher of english in the world mind!) your explanation gives me nothing.... NOW are you actually changing the SIZE of text (that is the font-size) or just the amount of text and hence the number of lines in the span??? either way the only detection tool you will have is javascript so this is ALL javascript for 'resizing' you image... Can I suggest that you adopt an approach that doesn't need all this hard work for very little benefit? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.