CSS vs Tables...

windows

Guest
Check this out...<br />
<br />
home.bendcable.com/theallensplace<br />
<br />
It should look something like this:<br />
<br />
---------------------- <br />
| contentcontentcont | Section A <br />
| contentcontentcont | <br />
---------------------- <br />
| contentcontentcont | Section B <br />
---------------------- <br />
| contentcontentcont | Section C <br />
| contentcontentcont | <br />
| contentcontentcont | <br />
| contentcontentcont | <br />
| contentcontentcont | <br />
---------------------- <br />
| contentcontentcont | Section D <br />
---------------------- <br />
<br />
I'm moving from table-formatted pages to using CSS and I just can't seem to figure this stuff out.<br />
<br />
Sections A, B, and D are set sizes and I'd like to set Section C to occupy 100% of whatever height remains on the page. <br />
<br />
In addition, I'd like to be able to load external HTML files into Section C when links in Section B are clicked.<br />
<br />
How in cyberspace do I accomplish this? <br />
<br />
Thanx.<!--content-->Probably should have posted in CSS section.<head><br />
<style><br />
.top {width: 300px; height: 100px; clear: right; border: 1pt solid black; overflow: hidden}<br />
.mid {width: 300px; height: 50px; clear: right; border: 1pt solid blue; overflow: hidden}<br />
.bot {width: 300px; height: 150px; clear: right; border: 1pt solid red; overflow: hidden}<br />
</style><br />
</head><br />
<body><br />
<div class="top">content</div><br />
<div class="mid">content</div><br />
<iframe src=http://www.webdeveloper.com/forum/archive/index.php/"rainforest.htm" name="if"></iframe><br />
<div class="bot">content</div><br />
</body><!--content-->Is that the only way?<br />
<br />
I'll have to use an Iframe?<br />
<br />
Thanx.<!--content-->hi stmasi....<br />
<br />
i couldn't figure-out your link...<br />
so i couldn't get a visual of what you were after...<br />
but here is a site that offers multiple templates of varying CSS layouts.<br />
<br />
<!-- m --><a class="postlink" href="http://www.thenoodleincident.com/tutorials/box_lesson/boxes.html">http://www.thenoodleincident.com/tutori ... boxes.html</a><!-- m --><br />
<br />
it's still not easy (for me, anyway :rolleyes: )...<br />
but it beats trying to figure it out on your own.<br />
hopefully you can find a suitable layout style that matches what you are trying to do.<br />
unfortunately, i still find CSS layout to be way too confusing...<br />
even after playing around with the templates there :(<br />
<br />
as far as your need to load external files into specific blocks:<br />
i couldn't get it to work for me (it caused a perfectly positioned block to just re-plant itself at 0,0 (x,y).<br />
<br />
i will no doubt be monitoring this thread to pick up info on how to get it all working.<br />
<br />
have fun at the noodleincident (it's cool stuff.... even if i don't really understand half of whats going on :rolleyes: )<br />
<br />
;) k<!--content-->Originally posted by stmasi <br />
I'll have to use an Iframe?It's the only HTML object that you can target with a link. Anything else would involve script.<br />
<br />
I should have prefaced my example with applicable browsers. It should work in IE 5+ (I tested IE 5.5), NS 6+, and Mozilla.<!--content-->That makes sense.<br />
<br />
I'm using script right now to swap images in the top box.<br />
<br />
I wonder how you'd do it for a page instead of just an image.<br />
<br />
Thanx.<!--content-->You change the IFRAME's location attribute, just like you'd change a FRAME.window.top.frames["if"].location.href = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"newPage.htm"The reason I suggested it, was that you can use the target attribute of the <A> tag:<a href="newPage.htm" target="if">whatever</a>That's how I understood your original request.<!--content-->Originally posted by stmasi <br />
I wonder how you'd do it for a page instead of just an image.You use an inline frame. (<!-- m --><a class="postlink" href="http://www.w3.org/TR/html4/present/frames.html#edef-IFRAME">http://www.w3.org/TR/html4/present/fram ... def-IFRAME</a><!-- m -->)<!--content-->window.top.frames["if"].location.href = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"newPage.htm"<br />
<br />
can also be written as<br />
<br />
window.top.frames.if.location.href = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"newPage.htm"<br />
<br />
However, both of them will fail a good bit of the time. If you are doing some kind of onmouseover thing, then you will also have to provide a real link as back up.<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"newPage.htm" target="if" onmouseover="window.top.frames.if.location.href = this.href">whatever</a><!--content-->
 
Back
Top