Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Box Positioning 1

Status
Not open for further replies.

timgerr

IS-IT--Management
Jan 22, 2004
364
US
Hey all, I was wonding how to position a box within a box so the 2nd box is at the bottom of the first box. Here is a picture of what I mean:
Code:
-------------------------------------
|                                   |
|                                   |
|                                   |
|-----------------------------------|
|                                   |
|-----------------------------------|
What this picture is supposed to represent is a box that houses another box. Again the 2nd box needs to be at the bottom of the outer box.

Can do the outer box but not sure what to do for the inner box.

Thank for the help.
timgerr

-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!

 
Maybe something like this will give you an idea.

Code:
<div style="width:640px; height:480px; border:1px solid black;">
<div style="width:100%; height:80%;"></div>
<div style="width:100%; height:20%; background-color:#0033CC; ">Box at the Bottom</div>
</div>

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
ok, that works better, the problem is I sort of want these 2 things to act separately. If I have overflow data within the 80% box, I do not want it to go into the box that has 20%. I would like to have a scroll bar start.

Am I making sense?

Thanks,
timgerr

-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!

 
Set the 80% box's overflow to scroll or auto. And then it will scroll if it has more than what it can fit.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thank you
timgerr

-How important does a person have to be before they are considered assassinated instead of just murdered?
-Need more cow bell!!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top