Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > A simple 2 contents / main text layout.

Thread Tools

A simple 2 contents / main text layout.

Spacen Jasset
Posts: n/a
I've looked around for what I want to do, but I can't seem to find what I

I would like to make a two pane layout. al la contents / main text style.
But I want is the contents box to alter what the main text section shows --
infact i want it to load up diffrent pages.

So I tried something like this:

<!-- Contents section -->
<div class="contents">

<base target="main">

<a href="main.html">Main</a></li>
<a href="contact.html">Contact</a></li>
.... more contents links



<!-- Main text ->
<iframe id="main" name="main" src="main.html" frameborder="0">

The problem is that the iframe adopts borders depending on the size of the
pages I link to. I just want the iframe to resize itself essentially, so
that the main browser scroll bars can be used...if you see what I mean. i.e.
I want the iframe "box" to expand as necessary.

Reply With Quote

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What will happen if main called in side main function? Ravi C Programming 17 04-01-2006 10:08 PM
int main() or int main(void)? Frederick Ding C Programming 10 12-04-2005 12:44 AM
adding main.aspx.vb & main.aspx.resx under aspx John M ASP .Net 1 05-29-2005 09:27 PM
int main(int argc, char *argv[] ) vs int main(int argc, char **argv ) Hal Styli C Programming 14 01-20-2004 10:00 PM