Welcome to Gaia! ::

Help?
Horntastic's avatar

Dapper Phantom

Where do you want the scrollbar?
The code will change by section, but in general it's:

outer_element {
height: ##px;
width: ##px; /*optional depending on usage*/
overflow: hidden;
}
inner_element {
height: ##px;
width: ##px; /*usually not optional*/
overflow-y: auto;
padding-right: 50px;
}

Ex, for your comments section:

#id_comments {
height: 200px;
overflow: hidden;
}
#id_comments dl {
height: 160px;
width: 470px;
overflow-y: auto;
padding-right: 50px;
}

If you tell me which section you want to make scroll I can tell you what the outer/inner element names well be c:
Some panels, like the wishlist on v2 profiles, don't take hidden scrollbars well.
kittymmeow's avatar

Fashionable Fatcat

Horntastic
Where do you want the scrollbar?
The code will change by section, but in general it's:

outer_element {
height: ##px;
width: ##px; /*optional depending on usage*/
overflow: hidden;
}
inner_element {
height: ##px;
width: ##px; /*usually not optional*/
overflow-y: auto;
padding-right: 50px;
}

Ex, for your comments section:

#id_comments {
height: 200px;
overflow: hidden;
}
#id_comments dl {
height: 160px;
width: 470px;
overflow-y: auto;
padding-right: 50px;
}

If you tell me which section you want to make scroll I can tell you what the outer/inner element names well be c:
Some panels, like the wishlist on v2 profiles, don't take hidden scrollbars well.

Just a note that you don't need a height (and actually probably shouldn't use one) on the outer element, since it will wrap to fit the inner element and it will be one less thing for her to type in. You don't usually need a width on the outer element, and in most cases the width of the inner element can just be 100%. So you really only have to set a height for the inner element and you'll be done.

outer element{
overflow:hidden;
}
inner element{
overflow-y:scroll;
padding-right:50px;
height:##px;
width:100%;
}

Quick Reply

Submit
Manage Your Items
Other Stuff
Get Items
Get Gaia Cash
Where Everyone Hangs Out
Other Community Areas
Virtual Spaces
Fun Stuff
Gaia's Games