/    Sign up×
Community /Pin to ProfileBookmark

CSS Scroll Bars

Hello, I have a division setting its overflow to ‘auto’, and it places a scroll bar on the contents of the division. However, the page in question has a scroll bar by default. How can I get rid of the default scrollbar?


———————————————————

On a side note, unrelated to scroll bars, does anyone know a way to position elements on the bottom of the page, no matter what resolution, and content in between a top and bottom set of navigation bars?

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWJun 04.2003 — Like

<body style="overflow-y:hidden;">

or

<body style="overflow-x:hidden;">

?

_________________________________________
Hmm... If you use absolute positioning, e.g.

position:absolute; left:20px; bottom;0px;

you get the object at the bottom of the screen. However, if your page content is longer than the screen, it will float above part of your page. If you then use a div as you appear to be using now, you can set the width and height of the object not to exceed the height of the screen.

Does that make sense?

dave
×

Success!

Help @Nicodemas spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.9,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...