Closed Thread
Results 1 to 3 of 3

Thread: Using URL # to centre on a DIV

  1. #1
    jaydee is offline Newbie
    Join Date
    Sep 2009
    Posts
    17
    Rep Power
    0

    Using URL # to centre on a DIV

    I've never ever used this before just know basically how to do it. In the forum I've made, each post TEXT, not the whole post has a div wrapper with it's id as the posts unique id so when I put in the url #5 it goes to answer 5. But it just goes to that post and it's at the top of the screen, how do I make it centre on the div so when the url is post.php?id=2#5 it will centre the page on div id 5?

    Thanks.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    42

    Re: Using URL # to centre on a DIV

    Well, no, it doesn't focus on divs, it focuses on named anchors. like <a name="5">text nr 5</a>
    __________________________________________
    I study Information Systems at Karlstad University when I'm not on CodeCall

  4. #3
    jaydee is offline Newbie
    Join Date
    Sep 2009
    Posts
    17
    Rep Power
    0

    Re: Using URL # to centre on a DIV

    Well I have <div id="<?=$aid;?>"> and that is what it focuses on. Just want to focus to be centred on screen.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VS2010: How to dock to centre
    By strider96 in forum Visual Basic Programming
    Replies: 1
    Last Post: 12-14-2009, 04:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

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