[thelist] Shrink wrapping a div?

Christopher Mahan chris_mahan at yahoo.com
Thu May 13 14:46:39 CDT 2004


--- Maximillian Schwanekamp <anaxamaxan at neptunewebworks.com> wrote:
> I'm drawing a blank here, though it must be a stupid question. Can
> someone
> smack me around and show me how to make a div "shrink wrap" around
> its
> content?  I.e. If I put Xpx-wide element inside the div, I want the
> div to
> be Xpx wide (plus padding and border), not 100% of the content
> width for its
> parent.

.somediv{display: inline}

=====
Christopher Mahan
chris_mahan at yahoo.com
818.943.1850 cell
http://www.christophermahan.com/


	
		
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 


More information about the thelist mailing list