News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Scrollbar

Started by Tom, September 13, 2004, 06:16:49 PM

Previous topic - Next topic

Tom

I have always liked the scrollbar that shows up when there is too much text on a line, or a pic too big, or on many other possible occasions. How might I go about doing this effect on a site away from SMF?

Thanks

Example:
Quotelongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtextlongtext

127.0.0.1

add overflow: auto to your div tags.

Example:

<div style="width: 100px; overflow: auto;">
     blah blah
</div>


http://www.depiction.net/?id=cssoverflow

Tom

Wow, that's a lot easier than I thought! Thanks!! :)

[Unknown]

Note that this can have... adverse effects in some browsers without the right amount of magicking.

-[Unknown]

127.0.0.1

What is this magicking you speak of?

[Unknown]

Quote from: 127.0.0.1 on September 14, 2004, 12:40:23 AM
What is this magicking you speak of?

Javascript is the magic of html.

-[Unknown]

Parham


GiNi3D

Quote from: [Unknown] on September 14, 2004, 01:48:42 AM
Javascript is the magic of html.
-[Unknown]
And the magic inside that magic is the 2 words >> "if" and "then"

Advertisement: