Skip to Content

Stylegala Forums » Forums list » Problem solving

Auto width DIV problems

Auto width DIV problems

post new topic Post new topic    Reply to topic Reply to topic

Author Message
sevensamurai

New member
  • Joined: 05 May 2008
  • Posts: 7
  • Status: Offline
Reply with quote Post Posted: Sun Sep 07, 2008 02:16
Hi everyone!

I'm trying to figure out a way to accomplish something that I would think is simple, but is turning out not to be.

I want a single DIV to set its width automatically to the content, and then nest a new DIV inside that with a BUNCH of content that will set its width to the same as the parent (which is to say, automatically to the less content of the parent).

Is this possible?

Example:

<div>Headline<div>blah blah blah blah blah blah etc.</div></div>

I don't know if nesting DIV's is necessarily the way to go, or if I might have to rely on some sort of Javascript to accomplish this.

Any help is greatly appreciated!

Thanks.

View user's profile Send private message
 
Sponsor
 

Page 1 of 1

post new topic Post new topic    Reply to topic Reply to topic

Display posts from previous:   

Powered by phpBB. © 2001, 2006 phpBB Group & Logo Design