Jump to content

Anchors cut off my page?


meehal

Recommended Posts

 

Hello, this issue has been driving me crazy. I haven't really had to use anchors before and now the time has come...

 

I'm using php and HTML the content is pulling in via GET and the content is in a plain html file. e.g....

 

index.php?page=home.html

 

where home.html is an actual file located in say pages/

 

i'm using the standard anchor techniques

 

here is some text above my link to anchor

 

<a href="#test1">test</a> moves you to the div with a ID called test.

 

<br/>

<br/>

<br/>

 

<br/>

 

<a name="test1">text</a>

 

Now when clicked it jumps the anchor but removes anything above it, is there a way around this. I think its going to be something very obvious but i just can't see it.

 

Any help would be greatly appreciated. I've tried google and searching this forum, but perhaps i'm searching for the wrong thing.

 

Thank you.

 

 

Link to comment
https://forums.phpfreaks.com/topic/104000-anchors-cut-off-my-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.