/    Sign up×
Community /Pin to ProfileBookmark

big image which changes a fixed width. How to fix it?

We work on a web where some big images with different widths are displayed in the header of a catalog, just one image for each section. Most of them fit in the specified width of the container, but one of them is wider than it, and it makes all the content to expand despite having a fixed width, which a priori needs to stay fixed for every block to fit in the layout.

The simple solution of reducing the image is not considered because our boss wants this image to be displayed in its original size, which makes it look sharper (marketing issues :rolleyes: ).

So, any advice on this please?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisSep 10.2008 — because our boss wants this image to be displayed in its original size[/quote]
He cannot have both. Does he have pointy hair?
Copy linkTweet thisAlerts:
@CentauriSep 10.2008 — The containers shouldn't expand anyway except in IE6, and the only way to stop that would be to set overflow:hidden on the container style so the image is cropped.
×

Success!

Help @Jazztronik 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.28,
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,
)...