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 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. 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
Archived
This topic is now archived and is closed to further replies.