HTML Beginner

G

Gordon McMillan

Folks,
I am doing a web page for college and would like to know how to
make the page scroll down.


Cheers


Gordon
 
B

brucie

In alt.html Gordon McMillan said:
I am doing a web page for college and would like to know how to
make the page scroll down.

you don't need to make a page scroll down. the visitor can to it
themselves as required.
 
N

Neal

Gordon said:
I am doing a web page for college and would like to know how to
make the page scroll down.

Put the mouse pointer on the scrollbar and drag it. ;)

If you're asking how to get the scrollbar to appear, just add enough
content, or make the browser viewport smaller. If your page is larger that
what the viewport (whatever size the user has it) can contain all at once,
a scrollbar (or more) is invoked.

Vertical scrollbars are normal, and that's what users expect. But
horizontal scrolling is a pain - if your page invokes a horizontal
scrollbar at any width above say 500px, there's a design problem that
needs to be fixed.
 
K

Karl Core

Gordon McMillan said:
Folks,
I am doing a web page for college and would like to know how to
make the page scroll down.

See that thing on the right side of the browser window?
That's called a scrollbar.
When the user wants to scroll, he'll do it himself.
 
S

Samuël van Laere

Karl Core said:
See that thing on the right side of the browser window?
That's called a scrollbar.
When the user wants to scroll, he'll do it himself.

Damn MS forgot all about the <scrollbarup> and <scrollbardown tags... ;)
However i'm sure there's a way to do it with javascript.
But i wouldn't recommend it to anyone, its a big no no.

Regards,
Sam
 
S

Sam Hughes

Folks,
I am doing a web page for college and would like to know
how to
make the page scroll down.

Why? This is important. If you're asking how to link to a specific part
of one of your pages, you can put a named anchor (<a name="iota">blah</a>)
somewhere in your page. Then, to link to that part (supposing the page
with the iota-named anchor is called foo.html), you could use <a
href="foo.html#iota">Foo thyself!</a>. If you're on the same page (in
foo.html), and you want to "link down" to the named anchor, use <a
href="#iota">some text..</a>.

Of course, I am not sure what you are asking because your question (and
your subject) is not clear.
 
S

Sybren Stuvel

Sam Hughes enlightened us with:
If you're asking how to link to a specific part of one of your
pages, you can put a named anchor (<a name="iota">blah</a>)
somewhere in your page.

This works for every element that has an ID. It makes more sense to
use

<h2 id='somechapter'>Some Chapter</h2>

and then link to '#somechapter'.

Sybren
 
S

Sam Hughes

Sam Hughes enlightened us with:

This works for every element that has an ID. It makes more sense to
use

<h2 id='somechapter'>Some Chapter</h2>

and then link to '#somechapter'.

It makes more sense to use named anchors, because they work on more
browsers.
 
K

Karl Core

Sam Hughes said:
It makes more sense to use named anchors, because they work on more
browsers.

Name a modern browser with substantial market share that doesn't support
linking to an ID
 
K

Kris

Sybren Stuvel said:
Sam Hughes enlightened us with:

This works for every element that has an ID. It makes more sense to
use

<h2 id='somechapter'>Some Chapter</h2>

and then link to '#somechapter'.

Or
<div id="somechapter">
<h2>Somechapter</h2>
<p>
...
</p>
</div>

...if you mean to link to a whole block of information, not just a title.
 
B

Barbara de Zoete

Or
<div id="somechapter">
<h2>Somechapter</h2>
<p>
...
</p>
</div>

..if you mean to link to a whole block of information, not just a title.

I don't understand. Link to a whole block of information? Why?
 
K

Kris

<div id="somechapter">
<h2>Somechapter</h2>
<p>
...
</p>
</div>

..if you mean to link to a whole block of information, not just a title.

I don't understand. Link to a whole block of information? Why?[/QUOTE]

Because a whole block of information is relevant to the origin it is
linked from, not just the title. Maybe the idea become more clear when
thinking of how to link a fraction of text in a paragraph; would you
link to the start of the relevant text, or enclose the relevant text
within the target element? Like this:

<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque
ligula felis, porta eget, mattis quis, rhoncus ac, lacus. <span
id="instruction">Suspendisse tempor felis. Ut in risus.</span> Integer
risus eros, adipiscing eu, tincidunt vel, lacinia sit amet, libero. Sed
eu erat ac massa mollis elementum.
</p>

<a href="#instruction">How to get this thing done</a>.

Imagine the targeted element could be indicated visually; how else would
you know what to look for?

It is already possible. Credits to David Dorward.
http://dorward.me.uk/software/frag/
 
B

Barbara de Zoete

title.

I don't understand. Link to a whole block of information? Why?

Because a whole block of information is relevant to the origin it is
linked from, not just the title.[/QUOTE]

[ 8< example ]
It is already possible. Credits to David Dorward.
http://dorward.me.uk/software/frag/

Nice idea. Come to think of it, great idea. I am not 'in to javascript',
that is to say, I know nothing about that, but I can see what it is
supposed to do. I could be very useful, especially if it could be utilized
also for fragments on other pages.

Neat. Thanks for the reply.
 
K

Kris

It is already possible. Credits to David Dorward.
http://dorward.me.uk/software/frag/

Nice idea. Come to think of it, great idea. I am not 'in to javascript',
that is to say, I know nothing about that, but I can see what it is
supposed to do. I could be very useful, especially if it could be utilized
also for fragments on other pages.[/QUOTE]

It does.
http://webrichtlijnen.overheid.nl/handleiding/ontwikkeling/productie/afbe
eldingen-alternatieve-tekst/alt-attribuut/alternatieve-tekst-schrijven/#l
ege-alt-tekst

or

http://tinyurl.com/6nafg
 
S

Sam Hughes

Name a modern browser with substantial market share that doesn't support
linking to an ID

Many browsers that don't support linking to an ID have substantial, non-
zero market share.
 
K

Karl Core

Sam Hughes said:
Many browsers that don't support linking to an ID have substantial, non-
zero market share.

I asked you to name one.
Just because you say so doesn't mean it is true.

I'd say that any browser that doesn't support linking to an ID will have
less than 1% market share.
I don't make business decisions based on 1% of my customers, and neither
should anyone else.
 
S

Sam Hughes

I'd say that any browser that doesn't support linking to an ID will
have less than 1% market share.
I don't make business decisions based on 1% of my customers, and
neither should anyone else.

Business decisions? Sounds like nine characters' worth of laziness to me.
Suit yourself.
 
K

Karl Core

Sam Hughes said:
Business decisions? Sounds like nine characters' worth of laziness to me.
Suit yourself.

Nice strategic trim job of my post.
Can you name a browser that doesn't support linking to an ID? A simple "yes"
or "no" answer will do.

I would have expected more from someone from Rensselaer...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top