|
|
#1 |
|
Admiral
![]() ![]() ![]() ![]() ![]() |
how do you...
make a link appear in the middle of a page?
what i mean is when you click on a link, how do you make the new page start from the middle? |
|
|
|
|
|
#2 | |
|
Chief of Naval Operations
![]() ![]() |
Re: how do you...
Quote:
u mean like.... this? (White Elephant Gift Exchange Signup - UPDATE: Sorry! Signup is closed!) |
|
|
|
|
|
|
#3 |
|
Chief of Naval Operations
![]() ![]() |
|
|
|
|
|
|
#4 |
|
Admiral
![]() ![]() ![]() ![]() ![]() |
actually, more like the second link.
see how it starts in the middle of the page? that's what i want. but i know yours start on a lower part of the page b/c of the table of contents link. i need to do so without that. imagine if i was to click on a link to go to gotapex, and instead of starting on the top of the page, i automatically start in the middle. |
|
|
|
|
|
#5 |
|
Arrrhh!
![]() ![]() ![]() ![]() ![]() |
Use anchors. That's the only way.
__________________
A priest, a paladin and Varimathras walk into a bar... |
|
|
|
|
|
#6 |
|
Lieutenant
![]() ![]() Join Date: Apr 2003
Location: So Cal
Posts: 222
|
<a name> tag ??
|
|
|
|
|
|
#7 |
|
Commander
![]() ![]() ![]() ![]() ![]() |
Couple ways..
Use an anchor. An anchor is simply done like this: <a name="myanchor">Bleeat!</a> Then, link to that page with <a href="oorgle.htm#myanchor"> Another way is to link to IDs within a page. The wretched v4 browsers don't like this (NS, anyway. I'm not sure about IE4), but it's a valid way to do this since the <a name=""> tag is deprecated in newer specs. Any tag can have a unique ID, like <h3 id="sectiontitle1">Chef's House of Hot Sauce Lovin'</h3> Then, just link to it like with the anchor tag, <a href="foo.htm#sectiontitle1"> |
|
|
|
|
|
#8 |
|
Chief of Naval Operations
![]() ![]() |
weird...
both links aren't working like they're supposed to... the first link is... http://www.gotapex.com/forums/showth...r=3#post514566 (White Elephant Gift Exchange Signup - UPDATE: Sorry! Signup is closed!) second link is.... http://www.w3.org/TR/REC-html40/stru....html#h-12.1.1 both have that #name on the end of the html.. and the second one describes how to do it: H1>Table of Contents</H1> <P><A href="#section1">Introduction</A><BR> <A href="#section2">Some background</A><BR> <A href="#section2.1">On a more personal note</A><BR> ...the rest of the table of contents... ...the document body... <H2><A name="section1">Introduction</A></H2> ...section 1... <H2><A name="section2">Some background</A></H2> ...section 2... <H3><A name="section2.1">On a more personal note</A></H3> |
|
|
|
|
|
#9 | |
|
Commander
![]() ![]() ![]() ![]() ![]() |
Quote:
__________________
blurt blurt blurt |
|
|
|
|