/    Sign up×
Community /Pin to ProfileBookmark

Central div with scroll bars

Evening,

How would i go about making this

[url]http://www.srobinson.net/sites/locksmith/faqs.php[/url]

have a central scrolling area? If we move the screen up, and get the scroll bars to appear then the whole site scrolls, along with the yellow footer! Id like a footer which stays in the same position and have the content scrolling ?

Scott

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@TJ111Jan 29.2008 — Change this in your CSS:
<i>
</i>.main_content {
text-align: center;
font-family: Arial,Helvetica, sans-serif;
color: #000000;
font-size: 80%;
background-repeat: no-repeat;
background-position: center;
[b]overflow: scroll;[/b]
}
Copy linkTweet thisAlerts:
@gil_davisJan 29.2008 — Give the central DIV a height and "overflow-y: auto".
Copy linkTweet thisAlerts:
@scottyrobauthorJan 29.2008 — I tried what you did TJ111 and that didnt really work.. Ill try yours now gil_davis
Copy linkTweet thisAlerts:
@scottyrobauthorJan 29.2008 — Ah that works setting the height in pixels, but how can i use a percentage height as all my pages have different heights etc
Copy linkTweet thisAlerts:
@scottyrobauthorJan 30.2008 — Any ideas? ?
×

Success!

Help @scottyrob 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.19,
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,
)...