Jump to content

Auto Expand Width(floated Div) If Content Exceeds Its Limit In Ie Issue


Recommended Posts

Hi,Pls look into the following code, I got desired result in FF.But IE expands only non-space word for oneline.(note: blank space on content right side other lines)Desired result: Content text should expand as whatever the space occupied by non-space word or Image.----------------------output in FF:------fklasj fklsjflksjdfkl sdfkjsdf klsjdfkjsdfkjsdffklsdjfsadkljfaskldjfasdklfjasdfkl fklasj fklsjflksjdfkl sdfkjsdf klsj dfkjsdfkjsdf------output in IE:----fklasjfklsjflksjdfklsdfkjsdfklsjdfkjsdfkjsdffklsdjfsadkljfaskldjfasdklfjasdfklfklasjfklsjflksjdfklsdfkjsdfklsjdfkjsdfkjsdf----<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML> <HEAD> <TITLE>Auto expand width if content exceeds its limit</TITLE><style type="text/css">.container{width:100px;zoom:1;}.panel{background-color:#ccc;zoom:1;}.inner{float:left;background-color:#ccc;zoom:1;display:inline-block;}</style> </HEAD> <BODY><div class="container"> <div class="panel"> <div class="inner"> fklasj fklsjflksjdfkl sdfkjsdf klsj dfkjsdfkjsdffklsdjfsadkljfaskldjfasdklfjasdfkl fklasj fklsjflksjdfkl sdfkjsdf klsj dfkjsdfkjsdf </div> </div></div> </BODY></HTML>I'm expecting favor!thanks in advanceThangaman

Edited by thangaman
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...