Greetings.
I have 2 columns layout using <div>.
Say, <div id="navMenu"> and <div id="content">.
Is it possible to target links clicked on "navMenu" to be displayed in "content"?
I have done this using iFrame. Can I do it without using any frames?
Please advice. Thanks.
red_evolve
1
Posting Whiz
Recommended Answers
Jump to PostGenerally you'd use another page to do it. e.g. index.htm would have your menu and the content for the index page. Page1.htm would have the menu and page 1's content.
A useful technique is the use of includes to add a menu or other reapeated code into multiple pages. …
Jump to PostWhat server side stuff does your server support? (just checking).
also if your server supports ASP you're missing a # -
<!-- #include file="ads.html" -->
Jump to PostCan you post the content of the html file you're including?
Is your main page a .asp extension?
in the file to be included, have you just put the actual code you want to include - no doctyle or body tags etc?
Jump to PostI believe your index page needs to be renamed to index.asp for asp code to work. Otherwise it will not be processed as ASP.
I use php and that's the way php works, so I guess asp is the same.
Jump to Post<div id="homepage>
<div>
Content
</div>
</div>#homepage {
margin-left: 100px;
}#homepage div {
margin-left: 20%;
}Basically your left bar is width 20%. But it's placed 100px from the edge. That makes it 20%+100px. You can't make that in pixels or %, so mozilla is adding …
All 24 Replies
DaveSW
15
Master Poster
red_evolve
1
Posting Whiz
DaveSW
15
Master Poster
red_evolve
1
Posting Whiz
DaveSW
15
Master Poster
red_evolve
1
Posting Whiz
DaveSW
15
Master Poster
red_evolve
1
Posting Whiz
DaveSW
15
Master Poster
red_evolve
1
Posting Whiz
DaveSW
15
Master Poster
red_evolve
commented:
Appreciate your help.
+3
red_evolve
1
Posting Whiz
DaveSW
15
Master Poster
DaveSW
15
Master Poster
red_evolve
1
Posting Whiz
DaveSW
15
Master Poster
red_evolve
1
Posting Whiz
DaveSW
15
Master Poster
red_evolve
1
Posting Whiz
DaveSW
15
Master Poster
red_evolve
1
Posting Whiz
DaveSW
15
Master Poster
red_evolve
1
Posting Whiz
DaveSW
15
Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.