Computer Hope

Internet & Networking => Web design => Topic started by: natalie on November 02, 2004, 08:34:08 AM

Title: scroll bar
Post by: natalie on November 02, 2004, 08:34:08 AM
how do u make a scroll bar go across the screen from side to side instead of from top to bottom?
Title: Re: scroll bar
Post by: Corrosive on November 02, 2004, 11:16:47 AM
Normally that's something I try to avoid rather than encourage, so I'm not sure if these will work.

The simplest way I can see is by putting an image somewhere on your page which is as wide as you need.
The best way is to simply get a single-pixel square transparent GIF image and use the "width" attribute to set it to the required size:
<img src="transparent.gif" width="1200">

The best way, however, would be through the use of stylesheets. It's a broad area to cover here, but it is an incredibly handy skill to have. I like Webmonkey's tutorials a lot, so have a lookie here:
http://webmonkey.wired.com/webmonkey/authoring/stylesheets/index.html

You're specifically looking for CSS Positioning, but it might be best if you have a read of the basics too.

Hope that helps