logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 04-18-2012, 09:48 PM   #1
acalhoun
 
Join Date: Apr 2012
Location: Nashville, TN
Posts: 2
Question AP DIVS Question

I am needing to have 2 text boxes on my page. The one will have the page content, and then directly underneath will be another articles link box.

Right now they are created using separate AP DIVS for each (set to absolute) - and look fine.. however....

I would like to make the height auto on the first box, so I can basically fill in as much content as I need and the box will just grow. When I try this though.. it overlaps the box underneath when more text is added..

Does anyone know if there is a way to make the lower box move down as more content is added to the top box?

Hope this makes sense.
acalhoun is offline   Reply With Quote
Old 04-19-2012, 02:01 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

dont use absolute positioning is the answer frankly
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 04-19-2012, 12:47 PM   #3
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

Edbr is right. If you just use the normal flow of the page and thus not setting a position, but just use the default value of the 'position' property which is 'static', it will do what you want.
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Old 04-19-2012, 01:12 PM   #4
acalhoun
 
Join Date: Apr 2012
Location: Nashville, TN
Posts: 2
Default

Ok thanks, that's kind of what I was thinking.. however I wanted one of the boxes to overlap, and was finding it difficult to do this using normal divs.

Thanks for confirming though.
acalhoun is offline   Reply With Quote
Old 04-19-2012, 02:52 PM   #5
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

Quote:
Originally Posted by acalhoun View Post
however I wanted one of the boxes to overlap, and was finding it difficult to do this using normal divs.
You can use a negative margin-top value to shift the lower div up, so that the upper div overlaps the lower div.
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:30 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com