Title: how to have fixed height and variable width for a text
Tags: css;html;text;width
Question: There is a DIV and a text inside it. this DIV must has 450px height and its width is variable but it must be so wide such that horizontal scrollbar doesn't appear and the DIV completely wrap the text. how do I can implement this?


Here is another answer: I'm not sure about what you're looking after, but if you want the div to get wide up to the horizontal space (as the containing block width) you could use max-width property while the div is displayed as inline-block:
height: 450px;
display: inline-block;
*display: inline; /* <-- inline-block hack for IE 6/7 */
*zoom: 1;
max-width: 100%;
Comment for this answer: zoom is not supported in Firefox and Chrome.
Comment for this answer: @Drupalist the **star-hacks** are only for **IE 6/7** as I mentioned. Happily remove that If you don't care about IE7 and below :)

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2014:00:02/19/14', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<css><html><text><width>', 'Title': 'how to have fixed height and variable width for a text', 'ViewCount': 554, 'id': 21881743, 'user_AboutMe': None, 'user_AccountId': 2556463.0, 'user_DisplayName': 'M a m a D', 'user_Reputation': 1782.0, 'user_Views': 403.0, 'user_id': 2218321.0}}