html - main page

VBdotnet2005
VBdotnet2005 used Ask the Experts™
on
When I click on Account, how can I have a html page display inside div  conten "content goes here"?


<!DOCTYPE html>
<html>
<body>

<div id="container" style="width:100%">



<div id="menu" style="height:200px;width:174px; float:left;">
 <a href="http://tim/web/QC/index.html">Document Control / QC</a>
            <br />
            <br />
            <a href="http://mysite/account.html">Account</a>
            <br />
            <br />
            <a href="http://mysite/order.html">Order</a>
            <br />
            <br />
            <a href="http://mysite/customer.html">Customer</a>
            <br />
                  <br />
     

</div>

<div id="content" style=";height:417px; width:1150px; float:left;">
Content goes here</div>

<div id="footer" style=";clear:both;text-align:center;">
Copyright © test</div>

</div>
 
</body>
</html>
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
The only thing I see wrong are some extra ';' in the styles.  Should be like this:
<div id="content" style="height:417px; width:1150px; float:left;">
Content goes here</div>

<div id="footer" style="clear:both;text-align:center;">
Copyright © test</div>

Open in new window

Author

Commented:
When I click on <a href="http://mysite/account.html">Account</a>, how is it going to display in this dive   > <div id="content" style="height:417px; width:1150px; float:left;">
Content goes here</div>
Expert of the Year 2014
Top Expert 2014
Commented:
You cannot do that with HTML unless you use a frameset or you use ajax to get the content
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
Gary is right.  It doesn't work that way.  Normally when you click on a link, the browser goes to a completely new page.  Making content appear in the current page requires more sophisticated programming than is available in basic HTML.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial