We help IT Professionals succeed at work.

html - main page

VBdotnet2005
VBdotnet2005 asked
on
232 Views
Last Modified: 2014-08-27
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

Dave BaldwinFixer of Problems
CERTIFIED EXPERT
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>
CERTIFIED EXPERT
Expert of the Year 2014
Top Expert 2014
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Dave BaldwinFixer of Problems
CERTIFIED EXPERT
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.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions