jaymc Posted July 15, 2009 Share Posted July 15, 2009 I have a div with the following CSS properties .pop_menu { left:0; padding:5px; position:absolute; } My problem is, unless I specify a static width in the css the div does not expand to the length of the line text e.g This should be one line Becomes This should be one line Quote Link to comment https://forums.phpfreaks.com/topic/166003-solved-div-width-position-absolute/ Share on other sites More sharing options...
jaymc Posted July 15, 2009 Author Share Posted July 15, 2009 white-space: pre; Fixed the problem. Quote Link to comment https://forums.phpfreaks.com/topic/166003-solved-div-width-position-absolute/#findComment-875536 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.