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.
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
Well I have <div id="<?=$aid;?>"> and that is what it focuses on. Just want to focus to be centred on screen.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks