473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to make text fit inside a div.

Hi, I'm building a site where "Now Playing" information will be shown inside of a 340 width div. I don't want to make the div higher either. Basically I need the titles of songs to fit inside of the div. Generally it works. BUT, when a song with a long title is played it overlaps. Need a way to make all songs fit inside of the div. Tried using percentages as a font size and that didn't work. Basically I need it to make the text smaller (in some cases) to fit the div.

The text is pulled from a database then page is refreshed, so the text size would be changed during the page render.
Oct 27 '11 #1
1 3239

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

Similar topics

0
by: Fred Heida | last post by:
Hi, I try to implement dragging (and dropping) of text inside a rtf control (similar as word i guess) I have set AllowdDrop = true and setup the handlers for DragDrop, DragOver, DragEnter. is...
6
by: TomB | last post by:
Hello all, On the page located at http://deimos.curious.be/~dusk/lyrics.php#gotn I have put the lyrics text inside <pre> elements so that the UA renders the linebreaks in the code. Because...
1
by: Paul | last post by:
Hi all, I'm making a custom control. I can set attributes to determine how the control is rendered, but I don't know how to access the text inside the tag. For example: <tagprefix:TestControl...
4
by: Pete90 | last post by:
I am trying to change the text continously for the text inside a table but it stops after reaching the 2nd index in the array. Anyone can debug? Below are the coding: <script...
11
by: giannis | last post by:
How can i refer to a form's textbox.text inside a SQL clause ? I know how is that in Access* but at VB i receive error. * SELECT FIELD1 FROM TABLE1 WHERE TABLE1.FIELD2=!.
2
by: amitp | last post by:
hi i'm using MS Word2003 for my VB application which is a report. The word documents contains tables and the cells inside the table contain some fields. My application replaces the field values with...
1
by: countocram | last post by:
I have big problem, I'm using preg_replace() function for my highlighter function, after searching for particular keyword, once the hightler check box is checked it will highlight the content that...
4
by: =?Utf-8?B?YWxiZXJ0b3Nvcmlh?= | last post by:
Hi everydoby! I have an issue, I have an static image, and I need to write text inside it in runtime, but I don't know how! I can't use absolute position in atributtes style. Thanks.
3
by: vishal1082 | last post by:
well, i wanna make property inside a property for example see in System.Environment.OSVersions.Version , .Version is a property and thrs Major and Minor properties inside it, i wanna have...
1
by: bushnellweb | last post by:
Is it just a simple css or is it more complicated with javascript, etc. I want to limit a description input to 500 characters. <input type="text"> makes it easy with maxlength="500" but the text...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.