| 
	
 | 
 Posted by CRON on 06/28/14 11:50 
Jonathan, 
Thanks for the reply - it's good to have an answer even tho its not 
what I wanted to hear ;c) I'll try the CSS margin. Cheers, 
 
Not sure what top posting is, but if you let me know I'll try to avoid 
it! 
 
Ciaran 
 
 
 
Jonathan N. Little wrote: 
 
> Ciaran, please don't top post. 
> 
> CRON wrote: 
> > Hi, Thanks for the replies: regarding code_wrong's post (quoted below). 
> > I am looking for the this exact effect but the line: 
> > <a name="tips"></a> 
> > MUST be next to or beside the line: 
> > Useful Tips Section 
> > 
> > I cannot simply move the anchor up the page because it is generated as 
> > part of a database list from PHP. So I need a way for the anchor to 
> > find the centre of the screen rather then the top when called. 
> 
> Long ago I once experiment to do the very same thin in order to clear an 
> absolute positioned header at the top of the page. The bottom line was 
> it required JavaScript. The JavaScript got very complicated and results 
> was hardly satisfactory. Cross browser differences problem, trapping the 
> scroll via a link using a hash vs. just a page scroll, determining the 
> proper offset and then not triggering page scroll adjustment....it goes 
> on and on... There just is no really good way to accomplish what you 
> wish. The best solution is to adjust your php that outputs the db 
> results to make the anchor at the very top of the output and maybe tweak 
> your CSS to provide extra space to push the output into view. 
> 
> A[name] { display: block;  margin-bottom: 2em; } 
> 
> 
> <snipping the rest> 
> 
> -- 
> Take care, 
> 
> Jonathan 
> ------------------- 
> LITTLE WORKS STUDIO 
> http://www.LittleWorksStudio.com
 
  
Navigation:
[Reply to this message] 
 |