iframe
- Started
- Last post
- 6 Responses
- ukit
Question for ya...I've got a page design that includes two iframe, one as the left nav, the other housing the main content. The left nav is a set width but the main content needs to stretch to fit the page. The problem is that I'm having trouble getting the iframe to do that. Width="100%" makes it exactly 100% of the page, and if I don't specify a width it defaults to about 200 px wide. any way to fix this?
- mg330
*drumroll
*faster
*faster and faster
*rimshot +cymbal crash
"You could do all that and more with Fabulous Cascading Style Sheets!
*crowd vomits on themselves.
- ukit0
Your comic timing is amazing...but really, how does one achieve this with CSS? Is there some different property I can specify for the iFrame vvia CSS?
- ukit0
Hmm..OK..erm..anyone else?
- mg330
Well here's the main question:
Do you NEED to have the nav in an iframe?
Because if not, you could do a two column css page with the nav as a fixed width and the content section as a luquid format.
Check this out:
http://bluerobot.com/web/layouts…Main page for that site
http://www.bluerobot.com/web/lay…I owe alot to that site, literally my knowledge of CSS started with of those layouts and a ton of trial and error and ideas.
- ukit0
I've been around the block with the whole all-CSS layout thing and I agree it's pretty cool, but in this case the content really does need to be in an iframe.
- mg330
How good are you with ASP?
Are you looking to more or less rely on one main page with different pages loading into the iframe?I've come to realize that more people than I thought use a combination of ASP, CSS, and XHTML to accomplish the same thing an iframe does, but it's a little better in my opinion.
Anyhow, as far as the iframe goes:
I think you need to have the html page that will load into it set as a table at 100% width, and have the iframe settings at 100% and the table that surrounds it at 100% - do you have a table around it?