Current location: Hot Scripts Forums » General Web Coding » CSS » Changing the text dynamically


View Poll Results: Changing the size of image dynamically
on 0 0%
on 0 0%
on 0 0%
on 0 0%
Voters: 0. You may not vote on this poll

Changing the text dynamically

Reply
  #1 (permalink)  
Old 04-26-04, 02:00 AM
vish2603 vish2603 is offline
New Member
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Changing the text dynamically

Hi,

I have a button (say Submit button). This button has a background image (using CSS). We are going to localize site. Therefore the text(value) on the button is changing dynamically. If the changed text lenght on the button is less than background image then there is no problem.

But if the text lenght after localization is get bigger than background image of the button then the text does not fit on the image (or the image does not stretch respect to the text leght).

I wants solution for changing the size of backgroud image of button with respect to the dynamically changing text on the button.

Please give me solution if possible, Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-29-04, 09:00 PM
pompei pompei is offline
Newbie Coder
 
Join Date: Feb 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
You mean, you want your background to stretch? For instance, if you have a background image that has a native resolution of 32pixels wide, you would want to spread that background image over the submit button (e.g. for 64 pixels each second pixel would be identical and it would appear blocky)?

I don't think you can do the above in css, though you could make the background a repeating pattern so that it fills up the submit button.
__________________
The current site I'm working on:
Recycling Equipment : Industrial Compactors & Industrial Balers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Query problem Wraith PHP 5 03-06-04 06:16 PM
how to change text dynamically with image? rabbit51 JavaScript 1 02-23-04 09:35 AM
How to change text dynamically with image? rabbit51 Script Requests 0 02-07-04 01:14 PM
picking random entries with a filter... Double selection problem dsumpter PHP 7 11-16-03 08:19 PM
displaying all duplicate records in my table. dsumpter PHP 6 09-02-03 11:54 AM


All times are GMT -5. The time now is 12:54 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.