473,511 Members | 14,846 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Anchor link does not work

2 New Member
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
2 2524
harshmaul
490 Recognized Expert Contributor
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
6,050 Recognized Expert Expert
Works for me too.

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

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

Similar topics

4
3437
by: deko | last post by:
I use named anchors to take users to specific parts of a long page. But I want to add some processing and do some things with my nav bar when users go to certain sections delineated by named...
5
25837
by: elsenraat_76 | last post by:
Hello! I was wondering if someone could help me out with a problem I'm having? I'm trying to input a javascript value into an anchor tag (from a function), but don't have an event to call the...
4
5027
by: catyionic | last post by:
Greetings: I have numerous links on index.html...example of one..... <A HREF="stage.html#Flash" target="left">Flash</A> It connects to page named stage.html ... which contains... <a...
11
12561
by: yawnmoth | last post by:
If using an onclick event handler to execute javascript when an anchor element is clicked on, what should the href attribute be? #? javascript:void(0)? Something else?
6
7837
by: ToMeK | last post by:
hi, i'm including page in my index file with php's include... so lik to it looks like: index.php?page=aboutus.php now, problem is that i have in "aboutus" page few anchor points... how can...
3
3821
by: gary | last post by:
Hi, I am trying to reference an anchor in a user control with a url. This worked in 1.1 but no longer works in 2.0. The ascx control is located in a "/include" folder If you have a...
8
2832
by: maya | last post by:
I have some links.. http://www.francesdelrio.com/linksCSS.html want it so when you hover over link ENTIRE DIV gets gray bg color (not just text (like link Three is now on this page..) but...
12
2120
by: deko | last post by:
I have a long page with several sections and want to link to these sections from another page like this: <a href='http://www.mysite.com/content.html#section12'>Section 12</a> Here's what the...
5
3188
by: Meadock | last post by:
Here's an example of what i'm trying to do. At www.webpage.com/page1.php, there's a link that points to an anchor at www.webpage.com/page2.php. The syntax is: <a href="page2.php#anchor">Link</a>...
1
2821
by: David C | last post by:
I have posted this question, which I think is very simple on several sites, and nobody seems to know what I am talking about. At my wits end here. Please help. I am putting together a site...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7093
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5676
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3230
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1583
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.