The code you posted doesn't seem to show the problem you described.
By the way, your code has errors. A <div> may not be placed inside a <a> and neither is an <a> allowed inside another <a>.
Main Topics
Browse All TopicsHi,
I have a div with "max-height: 800px; overflow: auto;". It's contents are less than 800px high but it's still showing a scroll bar and clipping the bottom of it's contents.
In the attached picture the green outline is the div with max height and overflow set. The green dashed line is a ruler I've used to measure the current height of the div (which is 684px... why? max is 800px...). You can see that the bottom of the red outline on the second row has been clipped and the scroll bar is visible.
The contents of the div are using margins and floats, don't know if this has anything to do with it.
Thanks in advance,
mms_master
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
@ITGaWD
The example given doesn't contain many albums. But when it's finished it will. The site is written with PHP, I usually create pages with x albums per page. But I wanted to try to create a similar effect to the image search at bing.com.
@Kravimir
Maybe the error is caused by something else on the page. I will have to post the rest of the page when I get home. Thanks for the info regarding the links. What I'm attempting to do is set a background on the div's with red outlines, then I'm going to put another div below the image which will contain the album title. I want to make the div and everything inside it clickable, so the user can click anywhere and not just on the image and title. Is there any way I can do this?
I'm in work at the moment, I will post the rest of the source code later.
Thanks,
mms_master
Business Accounts
Answer for Membership
by: ITGaWDPosted on 2009-06-03 at 14:32:24ID: 24541578
change overflow to hidden or visible and maybe change height to auto so that the div will extend with content, this would work best with overflow: visible