Jump to content

Recommended Posts

Posted

I have a parent div and a nested div. As I type in the nested div it expands the parent div.

It stops expanding the parent div once I position the nested div absolute right; (parent div position:relative).

 

I cant figure out how to have the nested div automatically expand the parent div while it is

position: absolute;

right:0;

 

Any Ideas?

I have uploaded a sample of what I am talking about here

Notice that the text in the nested div expands past the backgroundin the parent div.

The parent div is #bottom with the nested div being #content

Posted

>div#bottom{
  position:relative;
  min-height:500px;
  overflow: auto;
  width:767px;
  background-image:

 

You have your bottom div set to 500px. If you remove that it will grow. Or if you add overflow:auto; you will get a scroll bar to scroll the content.

 

Also, take a look at it with IE. Doesn't even display the content.

Posted

I didnt want to go the overflow route. If I remove the min-height:500px, then the parent dive drops to nothing.

If I remove the position:absolute in the nested div I get a page that looks like this

Notice that the parent div expands like I want it to, but the nested div is no longer in place.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...