Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Really Basic Hyperlink Problems...

    Hi folks, hoping someone can help me out a little - i've only just begun web-coding and things are looking well, but i am having an issue with hyper-links not working... is this because my coding is wrong, or is there some other issue - the W3c validator link is working, and the image links are working...I'm sure my tags are correct and the files are in the right places in terms of system folders etc. any ideas???

    thanks Cam

  • #2
    New Coder
    Join Date
    Feb 2013
    Posts
    37
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Can you provide an example of the hyperlink issue? I can work with you to resolve this.

  • #3
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    yep...

    these are my navigation links...

    Code:
    <div class="header">
      <a  href="index.html" class="logolink"><img src="../_images/templates/logo.png" alt="Waste Commodity Consultancy" width="975px" height="150px" class="logo"/></a>
          
       <div  class="navigation">
          <ul class="links">
           <li><a  href="index.html" title="Our Homepage" class="nav_links">Home</a></li> 
           <li><a  href="how_it_works.html" title="What we do, and how we do it" class="nav_links">How it Works</a></li> 
           <li><a  href="case_studies.html" title="Examples of successful projects" class="nav_links">Case Studies</a></li> 
           <li><a  href="membership.html" title="Becoming a Member" class="nav_links">Membership</a></li>
           <li><a  href="contact_us.html" title="Getting in touch" class="nav_links">Contact Us</a></li>
         </ul>
       </div> <!--.navigation  closes-->
      </div> <!--.header  closes-->
     
      <!--end  of header-->
    if they're any use...
    Last edited by VIPStephan; 03-18-2013 at 05:07 PM. Reason: Fixed code BB tags

  • #4
    New to the CF scene
    Join Date
    Mar 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok... sorted due to experimentation - had to use .htm instead of .html!

  • #5
    New Coder
    Join Date
    Feb 2013
    Posts
    37
    Thanks
    1
    Thanked 4 Times in 4 Posts
    From what I understand, you are trying to link to the .htm pages? If that is so, you'll need to revise the file extension in the code to .htm since they are a different extension than the .html.

    The rest of the code seems like it would function fine. You may want to remove the double-spacing in the tags.

  • #6
    New Coder
    Join Date
    Mar 2013
    Posts
    63
    Thanks
    2
    Thanked 2 Times in 2 Posts
    not trying to butt in but couldn't he use ../content.htm so that it automaticallys grabs the main site address, would this require using css, or is this already being done with html?

    such as www.myaddress.com and places /content.htm after the address?

  • #7
    Regular Coder
    Join Date
    Apr 2012
    Location
    St. Louis, MO
    Posts
    985
    Thanks
    7
    Thanked 101 Times in 101 Posts
    The ../ makes the browser look back one directory. The way it's currently coded, it looks in the same current directory.
    ^_^

    If anyone knows of a website that can offer ColdFusion help that isn't controlled by neurotic, pedantic jerks* (stackoverflow.com), please PM me with a link.
    *
    The neurotic, pedantic jerks are not the owners; just the people who are in control of the "popularity contest".

  • Users who have thanked WolfShade for this post:

    chakanevil (03-18-2013)

  • #8
    New Coder
    Join Date
    Mar 2013
    Posts
    63
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by WolfShade View Post
    The ../ makes the browser look back one directory. The way it's currently coded, it looks in the same current directory.

    Oh ok, I use css and php and noticed that all my links are like so

    background: url(/application/views/default/images/menubar.png)

    not trying to cause any confusion, just always trying to be helpful although some people seem to be a bit rude on these forums, thanks for being polite.

    Basically when i suggest something to someone it's the same as me learning, as I am looking for a advance coder to give me insight on rather or not it should be used, and why or why not, so that I can improve my coding skills.

    My suggestions are not always the right way, but rather what i have came across that seemed to work for me, just now started using the w3c validator.

    Last edited by chakanevil; 03-18-2013 at 10:18 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •