/    Sign up×
Community /Pin to ProfileBookmark

Scrollbar removes right part of images

Hi,

Sample:

[CODE]<!DOCTYPE html>
<html>
<head>
<title></title>
<style type=”text/css”>
div {display:inline-block; height:200px; overflow-x:hidden; overflow-y:auto;}
a {display:block;}
img {border:0;}
</style>
</head>
<body>
<div>
<a href=”#”><img src=”http://dl.dropbox.com/u/4017788/Labs/thumb1.jpg” alt=””></a>
<a href=”#”><img src=”http://dl.dropbox.com/u/4017788/Labs/thumb1.jpg” alt=””></a>
<a href=”#”><img src=”http://dl.dropbox.com/u/4017788/Labs/thumb1.jpg” alt=””></a>
<a href=”#”><img src=”http://dl.dropbox.com/u/4017788/Labs/thumb1.jpg” alt=””></a>
<a href=”#”><img src=”http://dl.dropbox.com/u/4017788/Labs/thumb1.jpg” alt=””></a>
</div>
</body>
</html>[/CODE]

Except in Internet Explorer and Opera the right part of images are cut. I wonder what’s the reason and how they can be displayed the same across different browsers.

Many thanks in advance!
Mike

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@hmsgoddessJul 06.2012 — Set a width on the div and it resolves the issue.
×

Success!

Help @Rain_Lover 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 7.21,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ,
analytics: Fullres
});

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: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: @Nanditha,
tipped: article
amount: 1000 SATS,
)...