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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filling vertical space?

Status
Not open for further replies.

ThatRickGuy

Programmer
Oct 12, 2001
3,841
US
Hey again,
I have 2 divs within a parent div. The first child div contains a small input control, the second div contains an IFrame. What I want is for the second div to use all of the space in the parent div except for what the first child div takes. Any ideas?

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Sure, I was just getting it up on my web site.


don't mind the place holder graphics. I have the border turned on on the main div that I'm working on. The first div with the input is correct, but the second div I need to expand.

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Nope. Don't have to. This is an exteremly limited scope web app. It needs to be accessed on a handful of network standardized machines. It was hell enough finding a dynamic border system that would work for IE. I'm not going to spend more time finding a dynamic border system that is (relatively) easy, works, and is cross browser compliant.

Okay, so maybe I'm a little curious. How bad is it? (noting the commented out doctype)

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
it breaks, you don't even see the borders, the two divs on the right don't appear...
the larger div is invisible...

i only bring this up because looking at a page in firefox is usually a good indicator of whether a page is coded properly. if it's not, then it might be just fixing up the code that will help your situation. i'll look into it.

*cLFlaVA
----------------------------
[tt]your mom goes to college[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
[banghead]
 

here's a contentless version that is just the div's w/ borders. for some reason, setting height:100% isn't working. Heh, no wonder why I stick to windows app developement, this web stuff is kicking my hiney!

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Ahh well, it is what it is, I've already gone well over my planned time to get this thing this far. I finally just set the height to 80%. it doesn't line up perfectly, but I just don't have the time to beat it into submission. IE6 it renders fine, FF it skips the backgrounds and is a little odd with the margins, but it's close-ish.


-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top