a href - possible to a specific box?

Discussion in 'HTML & Website Design' started by dannee, Mar 12, 2011.

  1. #1
    hello everyone, i'm new to css, just began to study by myself.

    after reading a bit about the box model, i started to try it on an html file.

    my question is, is it possible to navigate on the website by a reference to a specific main box, instead of a new html file ? to be more specific, i attached my html file. i'm sure there is a solution for this. thanks for your help.
     

    Attached Files:

    dannee, Mar 12, 2011 IP
  2. ACME Squares

    ACME Squares Peon

    Messages:
    98
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Using frames it's possible. But don't use frames!
     
    ACME Squares, Mar 14, 2011 IP
  3. jasmin123

    jasmin123 Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Its may be possible by using frames but for better result you may contact to an expert
     
    jasmin123, Mar 14, 2011 IP
  4. hypokill

    hypokill Well-Known Member

    Messages:
    271
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #4
    I'm not fully understanding what you mean to another box. You either want to open up a page within a div. Which you would use jquery or use an iframe instead of a div and use javascipt. Or you want the page to refresh into a specific position on your page, so lets say you have a huge header to your site and you want a link to load half way down the page which would usually take some scrolling, javascript can also be used. Most likely what ever your tying to accomplish javascript will most likely accomplish this.
     
    hypokill, Mar 14, 2011 IP
  5. Directory Vortex

    Directory Vortex Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    CSS file is used to determine how your site looks, but it has nothing to do with the functionality. There are three solutions for your problem that come to my mind..

    1. Using frames - but I would not suggest you to use this method, it's obsolete and not good for SEO

    2. Javascript - tabs. I think this is the most common method, there are numerous scripts on the internet. One example would be http://flowplayer.org/tools/tabs/index.html. Although it's very handy for small portions of content to be divided in tabs, I don't think it would be a good idea to have whole website in tabs as whole content is loaded at once.

    3. Javascript - AJAX - this is the smoothest but hardest method. Unlike tabbed content, with AJAX data is loaded only when users clicks on a certain navigation link. It's very common today as well.
     
    Directory Vortex, Mar 14, 2011 IP
  6. jasmin123

    jasmin123 Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Its may be possible by using frames but for better result you may contact to an expert
     
    jasmin123, Mar 14, 2011 IP
  7. ACME Squares

    ACME Squares Peon

    Messages:
    98
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If you choose an AJAX type method, you will need to consider "progressive enhancement", in that you'll need a basic text version of the page anyway.
     
    ACME Squares, Mar 15, 2011 IP
  8. techntuts

    techntuts Member

    Messages:
    197
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #8
    Yes it is possible using iframes and ajax, but using iframes may increase you site load time...
     
    techntuts, Mar 15, 2011 IP