By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,695 Members | 1,368 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,695 IT Pros & Developers. It's quick & easy.

Anchor link does not work

P: 2
This is the first time I have ever needed links within a page. Thought it was simple, but it won't work at all. The page validates and I can't see any reason why it would not work. Appreciate any help given. :-)

Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <title>Untitled Document</title>
  6. <style type="text/css">
  7. <!--
  8. .camerabag_guide .category h1 {
  9.     font-size: 1.2em;
  10.     color: #003366;
  11.     margin: 0px;
  12.     padding: 0px;
  13. }
  14. .camerabag_guide .category .questions a:link, .camerabag_guide .category .questions a:visited {
  15.     text-decoration: none;
  16.     color: #CC6600;
  17. }
  18. .camerabag_guide .answers h1 {
  19.     color: #330033;
  20.     background-color: #CCCCCC;
  21.     margin: 0px;
  22.     padding: 0px 0px 0px 1%;
  23. }
  24. .camerabag_guide .answers .answer_holder {
  25.     border: thin solid #9900FF;
  26.     margin-bottom: 1%;
  27. }
  28. .camerabag_guide .answers .answer {
  29.     color: #00CC66;
  30.     padding-left: 1%;
  31. }
  32. -->
  33. </style>
  34. </head>
  35. <body>
  36. <div class="camerabag_guide">
  37.  
  38.   <div class="category"> 
  39.  
  40. <h1>What is Camerabag ?</h1><br>
  41. <div class="questions">
  42. <a href="#question1">About Camerabag ?</a><br>
  43. <a href="#question2">Who should use Camerabag ?</a><br>
  44. </div><br>
  45.  
  46. <h1>How to Sell gear using Camerabag?</h1><br>
  47. <div class="questions">
  48. <a href="#question3">This is a question</a><br>
  49. </div><br>
  50.  
  51. </div><br>
  52.  
  53.  
  54. <div class="answers">
  55.  
  56. <div class="answer_holder">
  57. <h1 id="question1">About Camerabag ?</h1>
  58. <p class="answer">
  59. Camerabag is the new way to buy and sell camera gear online</p>
  60. </div>
  61.  
  62. <div class="answer_holder">
  63. <h1 id="question2">Who should use Camerabag ?</h1>
  64. <p class="answer">
  65. Anyone who wants to</p>
  66. </div>
  67.  
  68. <div class="answer_holder">
  69. <h1 id="question3">This is a question</h1>
  70. <p class="answer">
  71. This is an answer</p>
  72. </div>
  73.  
  74. </div>
  75.  </div>
  76. </body>
  77. </html>
  78.  
Dec 14 '07 #1
Share this Question
Share on Google+
2 Replies


harshmaul
Expert 100+
P: 490
Hi,
Its working fine for me. May be add some more content to the answers to add the page out a bit. or alternativly what browser are you using maybe its x-browser issues
Dec 14 '07 #2

Markus
Expert 5K+
P: 6,050
Works for me too.

Your page just needs stretching out a bit.
Dec 14 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.