- Menu scripts
- Window scripts
- Calendar scripts
- Gallery scripts
- Form widgets
- XP widgets
- Table widgets
- Drag and drop
- Folder trees
- Tooltips
- AJAX scripts
- Misc scripts

- Javascript games
- Chess widgets
- DHTML Suite
- Top sponsors
- abo-storch.de
- anbieter-vergleichen
- Sigmalist.com
- More
- Resources
- cbolson.com
- Vision.To Design
- Other resources
Download "Fit text in box" script
Put this into your <HEAD> section
Put this into your <BODY> section
How to use
You use this script by defining a <DIV> with an ID. This div should contain one <SPAN> tag which holds the text. Example:
<div id="theBox"><span>www.dhtmlgoodies.com</span></div>
<script type="text/javascript">fitTextInBox('theBox');</script>
The fitTextInBox() function will autofit the text into it's parent DIV. The arguments to this function is the ID of your DIV. The second argument is optional. Use
it if you need to define a maximum height. The width of the div is set in the CSS:
#theBox{
width:500px;
border:1px solid #CCC;
color: #317082;
}



