New on DHTMLGoodies.com:
DHTML Chess is now available for WordPress at WordPressChess.com.
New on DHTMLGoodies.com:
DHTML Chess is now available for WordPress at WordPressChess.com.
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;
}
Post your comment
Comment preview: