/    Sign up×
Community /Pin to ProfileBookmark

Add scroll bars with CSS positioning?

I want to convert from frames to CSS positioning. I am sizing and locating two areas. One will be filled with text and the other will contain an image. Both the text and the image will be larger than there respective areas. Therefore, I need to be able to add a vertical scroll bar to the area with text and vertical & horizontal scroll bars to the area with the image (the image is a map).

Can scroll bars be added to such areas? If so, can you give me a hint on how to program this?

Thanks.

Marcus

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogMar 18.2007 — CSS:
<i>
</i>div#example {
width: 400px;
height: 400px;
[color=red]overflow: auto;[/color]
}

HTML:
[code=html]
<div id="example">
<img src="pic.jpg" width="500" height="600" alt="Example">
</div>
[/code]
Copy linkTweet thisAlerts:
@David_HarrisonMar 19.2007 — Rather than using an image map, perhaps you could use [url=http://www.alistapart.com/articles/imagemap]this method[/url]. Image maps went out of style some time ago.
×

Success!

Help @mlibkind 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.20,
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,
)...