Click to See Complete Forum and Search --> : Scrollbar editing


kaygdanimal
12-03-2005, 05:08 AM
I have a few questions about editing the scrollbar and I was hoping that some experts here would know the answer.

I use iframes to display content in a window. I want to know is there a way I can set the up/down scrollbar on the left side of the frame rather than on the default right side and at the same time I would like to know how wide a normal scrollbar is in pixels? I am creating content to be displayed right-aligned and would rather not have content be cut off by the scrollbar (in-case it is impossible to move the scrollbar to the left).

the tree
12-03-2005, 05:14 AM
The scrollbars are part of the users GUI, not your page. So in general there is no way to change scroll bar properties using w3c (http://w3.org) approved code. There is some invalid proprietry CSS that will only work in Internet Explorer. Having said that, there might be some x-browser Javascript or something that'll move the scroll bar to the left but I wouldn't rely on it.

Fang
12-03-2005, 07:08 AM
The document in the ifame has to contain this attribute:<html lang="en" dir="rtl">
Scrollbar width depends on browser, screen resolution, OS and OS theme.

kaygdanimal
12-04-2005, 12:30 AM
The document in the ifame has to contain this attribute:<html lang="en" dir="rtl">
Scrollbar width depends on browser, screen resolution, OS and OS theme.
What exactly is the dir="rtl"?

I looked through my HTML, XHTML, and CSS 3rd Edition Bible but all the dir command tells me is that it is for deprecated lists. I figure that lang="en" means the language will be English.

Thanks. I found out that my scrollbar is 20px and that was on 1280x800 pixels. which the resolution for my webpage is best viewed at 1024x768 pixels.

Fang
12-04-2005, 12:42 AM
dir (http://www.w3.org/TR/REC-html40/struct/dirlang.html#adef-dir) is for almost all elements.
The element dir is depreciated (http://www.w3.org/TR/REC-html40/index/elements.html).

A webpage is best viewed at all resolutions.